-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
[v5] Consider moving "Discovering" messages to Output Diagnostic Level #1552
Comments
Imho the Discovery is an important part of the new approach, and unlike your case where everything is done in <1s, because you did everything right. Some people might see discovery taking much longer on few files, and this output will help with the transition by identifying where they still have misplaced code. I could stop writing a new line after printing the file, because it is a serial operation, which would reduce the amount of lines written to the screen. But generally I understand your reasoning, and feel like this should be re-visited in few months / a year when Pester5 is more widely adopted. |
But I'm saying still preserve the discovery headers, so you can show someone their discovery took 20 seconds or whatever, and also still throw any discovery errors in this section. Then if they bump up to diagnostic (as you normally would in troubleshooting) you can then see the per file times to troubleshoot. I get your point and this is a preference item so maybe I'll PR in a setting :) |
Noooooo! 😁 I am not adding 40 different settings for output, I plan to make the whole output replaceable, and this would only force the plugin authors to implement those options. |
I like @JustinGrote proposal because I am thinking about PowerShell repo where we have ~400 test files. |
I am of course open to discussion, but would like to avoid changing a lot of stuff right before release, or releasing 20 more RC versions and never get to the 5.0.0 release. 🙂 |
My current opinion on this is:
|
Sounds good to me. I think part two about filter output should continue in #1746, but I do agree 👍 |
k. Smashed both into 5.3 because it seems like we have a clear plan. |
Because each test file name is shown in the "Running" section, the discovery section duplicates the information and leads to a "wall of purple" if you have tests in a lot of separate files
However I don't want to go all the way to minimal, I want the "wall of green" of passing tests to watch progress and see how the performance of each test went.
Therefore, I think the discovery section on output normal should look like it does on output minimal (just that discovery started and completed, two lines) and then do the normal output. This would also be closer to what v4 users would expect on default which will ease the v4-v5 transition.
Here's a mockup of what I think Output Normal should look like:
The text was updated successfully, but these errors were encountered: