Jump to content

Unit Testing: Difference between revisions

m
Undo revision 10344 by YannickMG (talk)
m (→‎2. Configure the Gradle test task: JDK 17 tests in JDK 8 projects)
m (Undo revision 10344 by YannickMG (talk))
Tag: Undo
Line 24:
        events "passed", "skipped", "failed"
    }
}
Want to use modern test dependencies in a repository without <code>enableModernJavaSyntax</code>? You can do so by configuring the test JDK version:
test {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
 
9

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.