Run Single Test With Gradle

Run single test from the command line with Gradle you can use the Test filtering available in the Java Plugin:

$ ./gradlew -Dtest.single=de.datenkollektiv.planets.homepage.HomeControllerTest test

Or specify the tests to run via --tests:

gradle test --tests de.datenkollektiv.planets.server.DropTouchBeaconTest
gradle test --tests DropTouchBeaconTest.shouldOnlyDropIfCargoBayContainsTouchBeacons
gradle test --tests *RepositoryTest
gradle test --tests de.datenkollektiv.planets*
Show Comments