gradle-test-logger-plugin icon indicating copy to clipboard operation
gradle-test-logger-plugin copied to clipboard

showOnlySlow also blocks the display of unit test failures

Open ctmay4 opened this issue 1 year ago • 1 comments

Description

I am trying to configure this to show the following:

  • passed tests but only ones that are slow
  • skipped tests
  • failed tests

Here is my configuration

    testlogger {
        theme 'standard'
        showExceptions true
        showStackTraces true
        showFullStackTraces false
        showCauses true
        slowThreshold 2000
        showSummary true
        showSimpleNames true
        showPassed true
        showSkipped true
        showFailed true
        showOnlySlow true
        showStandardStreams false
        showPassedStandardStreams true
        showSkippedStandardStreams true
        showFailedStandardStreams true
        logLevel 'lifecycle'
    }

However when I set showOnlySlow to true, it does only show the slow ones and stops showing my failures. I have to be able to see which tests are failing. What I really need is showOnlySlowPassed or something equivalent.

Is there a way to do that?

ctmay4 avatar May 16 '24 19:05 ctmay4

Looks like this got brought up in the merge request:

https://github.com/radarsh/gradle-test-logger-plugin/pull/207#issuecomment-996864599

I don't think it was fixed before it was merged.

ctmay4 avatar May 16 '24 20:05 ctmay4