You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the initial implementation of #3292 is merged, we need options to control the verbosity (e.g. if we show passed tests), and if assembly info should be written.
For the part about customizing information, I think what could be a good syntax is to go with include/exclude lists:
--show passed,skipped,failed # shows only passed, skipped and failed tests (no summary)
--hide skipped # take default set and remove skipped
--show all --hide stack-trace # shows everything but stack traces
To me this customization is really hard to do in a way that does not leave out the information as it gets updated. E.g. take retries, if we make them their own category, and add them later, then people might never learn about them to add them to their output, or their list of options becomes really long. So some kind of aggregate option is nice to have, (like Passes - which shows all info related to passed tests, or your all).
And also hard to do in a way that is customizable enough to satisfy everyone. One person likes that standard output is printed for successful tests, other does not.
I've implemented all those customizations for Pester in various forms, and it seems like a futile fight. People either stick with the outputs they get (in silent, normal, detailed, diagnostic form), or they want endless customizations, where it is impossible to find the balance in this "enum" form.
Being very specific also exposes a lot of options that a possible new implementer of the output needs to implement, if you ever want to allow that. Take MSBuild output between normal output and terminal logger. Terminal logger and normal output are free to interpret their "normal" output in any way they like, because they are not told that user wants "targets, targetDuration, successBuildResult, postBuildErrorSummary".
Alternatively, I've seen a lot of people benefit from us returning an optional output object that has all the information about the run (if I redesigned that today I would probably go with multiple objects - one per test source). They can then post process them in a any way they want. E.g. merge results programatically, and print summaries that are aware of everything.
Activity
Evangelink commentedon Aug 8, 2024
I would love to have the following options:
Customize output style:
Customize information:
Customize test name:
nohwnd commentedon Aug 15, 2024
Added
--no-progressand--no-ansiin #3550.nohwnd commentedon Sep 3, 2024
I also added --output https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-platform-extensions-output
Evangelink commentedon Dec 18, 2025
For the part about customizing information, I think what could be a good syntax is to go with include/exclude lists:
nohwnd commentedon Dec 18, 2025
To me this customization is really hard to do in a way that does not leave out the information as it gets updated. E.g. take
retries, if we make them their own category, and add them later, then people might never learn about them to add them to their output, or their list of options becomes really long. So some kind of aggregate option is nice to have, (like Passes - which shows all info related to passed tests, or yourall).And also hard to do in a way that is customizable enough to satisfy everyone. One person likes that standard output is printed for successful tests, other does not.
I've implemented all those customizations for Pester in various forms, and it seems like a futile fight. People either stick with the outputs they get (in silent, normal, detailed, diagnostic form), or they want endless customizations, where it is impossible to find the balance in this "enum" form.
Being very specific also exposes a lot of options that a possible new implementer of the output needs to implement, if you ever want to allow that. Take MSBuild output between normal output and terminal logger. Terminal logger and normal output are free to interpret their "normal" output in any way they like, because they are not told that user wants "targets, targetDuration, successBuildResult, postBuildErrorSummary".
Alternatively, I've seen a lot of people benefit from us returning an optional output object that has all the information about the run (if I redesigned that today I would probably go with multiple objects - one per test source). They can then post process them in a any way they want. E.g. merge results programatically, and print summaries that are aware of everything.
Evangelink commentedon May 15, 2026
There is currently no traction on this so I'll move it as won't fix.