[PublishTestResultsV2] Add option to fail task if no test result files are found #18931
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task name: PublishTestResultsV2
Description:
Adds an option that lets the user configure the task to fail in case no
test result files have been found. This serves as a safeguard to make
sure that the test-run task and this task has been configured properly
to find the test result files.
We are defaulting to not failing the task on missing files, to keep current behavior.
Documentation changes required: Y
Added unit tests: N
Not sure how this should be tested, as the "Warning" functionality doesn't seem to be tested either?
Attached related issue: Y
Solves #13275
Checklist:
Task version was bumped - Yes
Testing done: Pushed the task to my test org, working fine as expected
Copied from: #14868