Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@blast-hardcheese
Copy link
Contributor

Suppress the second Cause during ZTestFramework output.

NB: This is not a binary compatible change, if that is desired I can attempt to ensure compatibility.

An alternate implementation of this feature could be to duplicate the render method.

Currently, the output is of the structure:

- SuiteName
  - Test label
  Fiber failed.
  <snip>
Ran 1 test in 2 s 167 ms: 0 succeeded, 0 ignored, 1 failed
- SuiteName
  - Test label
  Fiber failed.
  <snip>
Done

This obscures the individual test failures, the summary at the very end
should only have the SuiteName and Test label, with stacktrace
suppressed, to highlight which tests are having a problem to make it
easier to scroll up in the test log.

With this alteration, the output of the test structure now looks like:

- SuiteName
  - Test label
  Fiber failed.
  <snip>
Ran 1 test in 2 s 167 ms: 0 succeeded, 0 ignored, 1 failed
- SuiteName
  - Test label
Done

(notice, the second Fiber failed. and stacktrace have been omitted)

@blast-hardcheese blast-hardcheese force-pushed the improve-sbt-test-runner-output branch from 88237e3 to 3a1ad0c Compare December 5, 2020 22:42
@blast-hardcheese blast-hardcheese changed the title Add includeCase parameter to SummaryBuilder Add includeCase parameter to DefaultTestReporter.render Dec 5, 2020
@blast-hardcheese blast-hardcheese force-pushed the improve-sbt-test-runner-output branch 2 times, most recently from 2adcde0 to 2aa95c1 Compare December 6, 2020 00:17
Suppress the second Cause during ZTestFramework output.

Currently, the output is of the structure:

    - SuiteName
      - Test label
      Fiber failed.
      <snip>
    Ran 1 test in 2 s 167 ms: 0 succeeded, 0 ignored, 1 failed
    - SuiteName
      - Test label
      Fiber failed.
      <snip>
    Done

This obscures the individual test failures, the summary at the very end
should only have the SuiteName and Test label, with stacktrace
suppressed, to highlight which tests are having a problem to make it
easier to scroll up in the test log.

With this alteration, the output of the test structure now looks like:

    - SuiteName
      - Test label
      Fiber failed.
      <snip>
    Ran 1 test in 2 s 167 ms: 0 succeeded, 0 ignored, 1 failed
    - SuiteName
      - Test label
    Done

(notice, the second `Fiber failed.` and stacktrace have been omitted)
@blast-hardcheese blast-hardcheese force-pushed the improve-sbt-test-runner-output branch from 2aa95c1 to 012f86e Compare December 6, 2020 01:22
Copy link
Contributor

@adamgfraser adamgfraser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for working on this! 🙏

@adamgfraser adamgfraser merged commit 40b1753 into zio:master Dec 16, 2020
@blast-hardcheese blast-hardcheese deleted the improve-sbt-test-runner-output branch December 16, 2020 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants