Skip to content

Commit

Permalink
Merge pull request #335 from koppor/patch-1
Browse files Browse the repository at this point in the history
Add FAQ for wrong gradle configuration
  • Loading branch information
radarsh authored Sep 4, 2024
2 parents 889859a + b0b5ad3 commit 1835aec
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,31 @@ from JUnit Platform 1.3](https://junit.org/junit5/docs/current/user-guide/#runni

The test logger plugin however, is fully compatible with the [Gradle native way](https://docs.gradle.org/current/userguide/java_testing.html#using_junit5) of
using JUnit 5.

### I see the test output twice. How can I fix it?

Example:

```text
> Task :myTest
org.project.MyTest
Test test() FAILED
org.opentest4j.AssertionFailedError: expected: <Optional[String]> but was: <Optional.empty>
MyTest > test() FAILED
org.opentest4j.AssertionFailedError: expected: <Optional[String]> but was: <Optional.empty>
at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
```

Then, you still have `testLogging` of gradle enabled. Example setting:


```groovy
testLogging {
events = ["FAILED"]
exceptionFormat "full"
}
```

Solution: Remove that setting from your `build.gradle`.

0 comments on commit 1835aec

Please sign in to comment.