Add option to fail Publish Test Results task when test result file is not found
See original GitHub issueQuestion, Bug, or Feature?
Type: Feature
Enter Task Name: PublishTestResults@2
Environment
- Server - Azure Pipelines
Issue Description
I imagine it is a common pattern to have a test task (with continueOnError: true) followed by a publish task. I’ve run into the issue a couple times where we will have our test task fail due to setup issues (e.g. not test failures), but the junit output file will not be published. The PublishTestResults task will warn it cannot find the file, but it will not fail the task. I find myself relying heavily on failTaskOnFailedTests: true
, and wish that I could make this task fail if no output files are found.
Task logs
For our build setup see here. This particular log actually brings up another issue, where failing when the output cannot be parsed would also be nice. I don’t think we have a log with the issue I described at the moment, but both things have occurred.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6
Top GitHub Comments
Hi - is this something you would accept a contribution on? This would be incredibly useful for me and looking at the code it seems like it would be fairly straightforward to implement.
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days