radarsh / gradle-test-logger-plugin

A Gradle plugin for printing beautiful logs on the console while running tests
Apache License 2.0
835 stars 36 forks source link

showOnlySlow also blocks the display of unit test failures #338

Open ctmay4 opened 3 months ago

ctmay4 commented 3 months ago

Description

I am trying to configure this to show the following:

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 commented 3 months ago

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.