-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Idea: Ability to make failed tests show up in the run summary as warnings instead of errors in Azure DevOps run summary #2295
Comments
Thanks for the suggestion! Definitely possible and compatible with both CIs. This is just me being curious: In what scenario would you use this? |
Hi! My idea was to use "warning" as guidelines or pointers for less dramatic "failures", e.g. when you are linting code using PSScriptAnalyzer and get suggestions to not use e.g At least in my mind it seems counterintuitive to have a bunch of red errors in the run summary that won't stop the build because they are less serious "errors". |
Thanks, good point. This would be a run-specific setting, so then you'd likely want to run Pester in two steps:
For PSSA specifically I'd generally recommend a separate step in CI for that. There's also prebuilt actions in marketplace for it. We use a dedicated workflow/pipeline for it here. |
Exactly! |
Checklist
Summary of the feature request
If Pester >= 5.3 is run in Azure DevOps, the run summary gets errors, i.e.
Would it be possible to introduce a parameter that lets you choose whether these are shown as errors or warnings, i.e.
##vso[task.LogIssue type=warning;]
?How should it work?
The text was updated successfully, but these errors were encountered: