Skip to content

Add options to configure output. #3492

Closed as not planned
Closed as not planned

Description

@nohwnd

Describe the bug

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.

Activity

  1. removed
    needs/triage
    on Aug 8, 2024
  2. Evangelink commented on Aug 8, 2024

    @Evangelink
    Member

    I would love to have the following options:

    1. Customize output style:

      1. Live: output as in Interactive display for terminals #3292
      2. Tree: we would display tests as a tree
      3. List or flat: each test is displayed on its line
      4. ...
    2. Customize information:

      1. Show passed
      2. Show skipped
      3. Show failed
      4. Show summary
      5. Show strack trace
      6. Show duration
      7. Show standard output
      8. Show error output
      9. ...
    3. Customize test name:

      1. Show method display name
      2. Show fully qualified name
      3. Show tree name
      4. ...
  3. nohwnd commented on Aug 15, 2024

    @nohwnd
    MemberAuthor

    Added --no-progress and --no-ansi in #3550.

  4. Evangelink commented on Dec 18, 2025

    @Evangelink
    Member

    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
    
  5. nohwnd commented on Dec 18, 2025

    @nohwnd
    MemberAuthor

    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.

  6. Evangelink commented on May 15, 2026

    @Evangelink
    Member

    There is currently no traction on this so I'll move it as won't fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions