diff -r 91816f9ab872 -r 0498f4c91fda 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') }