Gangmax Blog

自由之思想,独立之精神

Run Single Test Method in Gradle

From here.

If you want to run a single test method in Gradle, do as following:

1
gradle test --tests com.test.myproject.mypackage.MyTestClass.myTestMethod

And then you can open the “build/reports/tests/test/index.html” file to get the whole logging output in the testing report.

Comments