# HG changeset patch # User Oleksandr Gavenko # Date 1524045121 -10800 # Node ID 0498f4c91fda50cb142e1ee61b6475d0f244444f # Parent 91816f9ab87296b169d30c37613735427639d64b To select specific test. 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') }