-
I would like to understand how I can run a Gradle task that will only run tests using the Launcher API. Should this be a simple main method call? Or is there Gradle integration with the JUnit Platform? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Gradle actually uses the
Yes, Gradle has built-in support for the JUnit Platform in the https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.Test.html
If you need something different than what Gradle's |
Beta Was this translation helpful? Give feedback.
Gradle actually uses the
Launcher
API itself to run tests on the JUnit Platform.Yes, Gradle has built-in support for the JUnit Platform in the
test
task.https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.Test.html
If you need something different than what Gradle's
test
task offers, yes, you could create your ownmain()
method or custom Gradle task to interact with theLauncher
API as you wish.