-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add failed logic for trx logger when TreatNoTestAsError is set to true #2707
Comments
IIRC this being just a warning was one of the motivations to introduce the new option. That way the build actually fails if there are no tests. Maybe the TRX should reflect that and it should be an error instead of warning? |
Yes, that is the point of this : to change trx to show outcome as "failed" instead of "warning". |
I thought the example above is an example of the final message, and the example above says warning. But if there will be error then great. 🙂 |
Should we keep the |
We can provide new outcome like |
But how will that show in AzDO? IF that is a new status, AzDO won't know about |
Yes, you are right. IMHO, in this case |
Currently, even one test fails, we report |
Thanks, I will take into consideration these opinions, while working on this change. |
We have TreatNoTestAsError parameter. When it is set to true and no tests discovered/executed, vstest.console.exe returns 1.
We do not see that in the TRX logger, only message about "no tests found".
We can potentially change TestRun/ResultSummary@Outcome to specify it or do the same as usual failed cases.
Current Behavior
Proposed Behavior
(Note that the value of
//ResultSummary/RunInfos/RunInfo/@outcome
attribute is changed.)AB#1272812
The text was updated successfully, but these errors were encountered: