To select specific test.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 18 Apr 2018 12:52:01 +0300
changeset 2248 0498f4c91fda
parent 2247 91816f9ab872
child 2249 efe2882b5554
To select specific test.
gradle.rst
--- a/gradle.rst	Mon Apr 16 23:47:54 2018 +0300
+++ b/gradle.rst	Wed Apr 18 12:52:01 2018 +0300
@@ -122,11 +122,18 @@
 
   $ gradle test
 
+To select specific test or pattern use ``--tests`` option, like::
+
+  $ gradle test --tests com.evil.UtitTest
+  $ gradle test --tests com.evil.UtitTest.login
+  $ gradle test --tests '*'BasicTest.login
+  $ gradle test --tests '*BasicTest.calc*'
+
 To skip tests in build::
 
   $ gradle -x test build
 
-Better solution involves passing system property with ``build.gradle``::
+Alternative solution involves passing system property with ``build.gradle``::
 
   test.onlyIf { ! Boolean.getBoolean('skip.tests') }