Skip to content

StoreConsoleOutput should be split into two options - one for testsuite and one for testcase level #164

Closed

Description

@MJB222398

Is your feature request related to a problem? Please describe.
I produce fairly large test reports with a lot of content being sent to standard output. I only care about this content per test case. I do not want it being repeated at the testsuite level as my report file becomes twice as long for no real reason.

Describe the solution you'd like
I would like for two new options:

  • StoreTestCaseConsoleOutput: true/false
  • StoreTestSuiteConsoleOutput: true/false

We can retain StoreConsoleOutput option for compatibility. The value of that should be used and then overwritten if one of the two above specific ones are specified.

Activity

  1. codito commented on Mar 11, 2025

    @codito
    Contributor

    @MJB222398 thanks for reporting this issue. Should we enhance StoreConsoleOutput to have more values?

    • StoreConsoleOutput=true: current behavior. Both testcase and testsuite outputs are emitted.
    • StoreConsoleOutput=false: current behavior. No outputs are captured.
    • StoreConsoleOutput=testcase: only testcase output is captured.
    • StoreConsoleOutput=testsuite: only testsuite output is captured.

    Would you be open to contributing a fix?

  2. MJB222398 commented on Mar 11, 2025

    @MJB222398
    ContributorAuthor

    @codito Yeah let me have a go at this.

  3. codito commented on Mar 13, 2025

    @codito
    Contributor

    @MJB222398 thanks for the PR! I will cut a release this weekend.

  4. codito commented on Mar 15, 2025

    @codito
    Contributor

    v6.1.0 is released to NuGet with this fix. Thanks again for your contribution!

    https://www.nuget.org/packages/JunitXml.TestLogger/

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions