Skip to content

Add option for ignoring exit code in RunTests target #2182

@analogrelay

Description

@analogrelay

We're looking at adding the ability to sequester tests by trait (specifically for Flaky tests right now). We want to be able to include test runs in Arcade builds that do not fail the build but still produce all the necessary output. It looks like this should be possible by making this Error task conditional on a flag stored with the TestRun item itself:

<Error Text="Tests failed: $(_ResultsFileToDisplay) [$(_TestEnvironment)]" Condition="'$(_TestErrorCode)' != '0'" File="XUnit" />

I've already got code in our build script that plugs in and synthesizes multiple TestRun items (and does things like changes the report filename and xunit '-trait' arguments) but I think I'd need an Arcade change to make this work (without just replacing the whole RunTests target).

(I have cycles to make the changes myself, but I wanted to create an issue first to discuss)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions