-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test output is shown twice for every test #252
Comments
I think one set of outputs is from Gradle. Do you have Gradle's |
No, not knowingly. It started logging all tests twice after I bumped the dependencies including this testlogger as well as the gradle version |
Can you try setting this in your build script and let me know if that fixes things? test {
testLogging {
+ showStandardStreams = false
}
} Up until 3.0.0, I used to reset any logging events set on the testLogging closure but doing so seems to be discouraged in Gradle 7. So I've removed the resetting logic. I am wondering if that has caused the issue you're seeing. |
Setting the |
Thanks, that was useful. Can I ask you to try setting this as well please? test {
testLogging {
+ lifecycle.events = []
}
} If this setting manages to hide the undesirable output, I will have to think of another way to revert the functionality which was previously present. |
i turns out that configuring testLogging events as part of the test task e.g. test {
testLogging {
events(TestLogEvent.PASSED, TestLogEvent. SKIPPED, TestLogEvent.FAILED)
}
} will lead to the described behavior. everything is working as expected when the events are removed. |
Description
Every test is displayed twice in the gradle output but in different styles.
Versions
Type of test being run
Junit5 tests
Test logger configuration
Screenshots
The text was updated successfully, but these errors were encountered: