Skip to content

Publishing test results with failed tests does not fail the build #1268

@strtdusty

Description

@strtdusty

I am using xunit test through DNX. For each project we generate a test result xml file and use the "publish test results" task to publish the results to the build. The results get published correctly and we can see that some tests failed. When tests fail, however, the build is not marked as failed. I could fail the build when running xunit, but the results would not get published. Is there a way for the build to look at the published test results and fail if there are test failures?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions