Skip to content

Ability to run tasks even with dependency errors and report errors if any #2332

@scr-oath

Description

@scr-oath

Description

When writing a task to invoke testing across various tools and directories, I would like to allow the test task(s) to fail, but to always invoke the junitjoin and testreport tasks to generate the report of what failed (but then have task fail).

Is there any way to allow some tasks to ignore errors of their deps?

Perhaps, like

deps:
  - task: test1
    ignore_errors: true
cmd: echo "do something"

or

cmds:
  - task: test1
    ignore_errors: true
  - echo "do something"

Ultimately the test failure must result in failed task, but the report always be generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions