-
-
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
-show should have an option to write summarized passes #1002
Comments
If you need to do processing on the output, why not just use -PassThru and get nice objects to work with inestead of the text? PowerShell, man! :) |
I like the idea that Travis proposes. It would simplify output when used in a CI pipeline. I think even when using the |
@johlju you can use |
@TravisEz13 you can change the output with a small hack. You can reach inside of Pester module and replace &(get-module pester) {
${function:Write-PesterResult} = {
param($TestResult)
Write-host "abc"
}
} That way you can work with the "raw data" directly, but you will also rely on internal details of the implementation. What I don't get is how you will understand which test has failed from that output. You will have to go back and run it again, or inspect the |
@TravisEz13 I am sorry, but to me this seems too niche to warrant adding another form of output to Pester. Hopefully we will have a general "plugin" solution some day, that would allow this kind of extension (or in this case reduction :D). |
@nohwnd Without some solution, the logs become unreadable in our CI system. I hope we have enough usage of PowerShell that other projects face the same problem. Granted we have a solution but I think in the long run the solution needs to be moved into Pester. |
1. Provide a general summary of the issue in the Title above
-show
should have an option to print only summarize passes. Example only a+
per pass2. Describe Your Environment
Operating System, Pester version and PowerShell version:
3. Expected Behavior
ability to print something per test case to satisfy CI requirement, but not full log
4.Current Behavior
To print something per test case I have to print the full test case information. I would like something smaller.
5. Possible Solution
Where PassedSummary causes only a
+
to be printed (no newline) per test case.6. Context
I'm trying to get output similar to the following without having to do a lot a processing of the output:
The text was updated successfully, but these errors were encountered: