Skip to content

Commit

Permalink
#6 - Test name printing on console running gradle is cryptic
Browse files Browse the repository at this point in the history
Finally a workaround!
  • Loading branch information
Duncan McGregor committed Nov 11, 2019
1 parent 6622d66 commit fbb1d0e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
13 changes: 7 additions & 6 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ You will need to include Minutest and JUnit 5 on your test compilation classpath
```groovy
dependencies {
...
testImplementation "org.junit.jupiter:junit-jupiter-api:5.5.2"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.2"
testImplementation "dev.minutest:minutest:+"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.5.2"
testRuntime "org.junit.platform:junit-platform-launcher:1.4.2"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.3.2"
testRuntime "org.junit.platform:junit-platform-launcher:1.3.2"
}
```

Expand All @@ -34,9 +34,10 @@ You now you need to let test tasks know to use JUnit 5
tasks {
test {
useJUnitPlatform()
testLogging {
events "skipped", "failed"
}
afterTest { descriptor, result ->
// work around a bug in Gradle versions before 6.1, see https://github.com/junit-team/junit5/issues/2041
println "\n$descriptor.className [$descriptor.classDisplayName] > $descriptor.name [$descriptor.displayName]: $result.resultType"
}
}
}
```
Expand Down
7 changes: 4 additions & 3 deletions docs/src/installation.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ You now you need to let test tasks know to use JUnit 5
tasks {
test {
useJUnitPlatform()
testLogging {
events "skipped", "failed"
}
afterTest { descriptor, result ->
// work around a bug in Gradle versions before 6.1, see https://github.com/junit-team/junit5/issues/2041
println "\n$descriptor.className [$descriptor.classDisplayName] > $descriptor.name [$descriptor.displayName]: $result.resultType"
}
}
}
```
Expand Down

0 comments on commit fbb1d0e

Please sign in to comment.