Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19850

Don't run tests unless test task specified on command line

$
0
0

A dumb solution would be to just make your build aware that it;'s running on jenkins and utilze solution nr 2 . Just add some project property from command line: ./gradlew -Pjenkins=true … and use that:
test.enable = project.hasPropety(‘jenkins’) && jenkins

The test will be disabled if nothing is supplied - on developer machine


Viewing all articles
Browse latest Browse all 19850

Trending Articles