Skip to content

Instantly share code, notes, and snippets.

@davidkuster
Last active May 6, 2016 17:20
Show Gist options
  • Save davidkuster/d3bca0c69a71edc4c996 to your computer and use it in GitHub Desktop.
Save davidkuster/d3bca0c69a71edc4c996 to your computer and use it in GitHub Desktop.
Running Gradle tests
// Gradle tests
// single file:
gradle -Dtest.single=TestClass :module-name:test --info
// single method:
gradle :module-name:test --tests *TestClass.methodToTest --info --stacktrace
// single test, Grails 3:
grails test-app -integration com.mypackage.myapp.MySpec.my_test_which_may_need_underscores_for_this_to_work
// in Maven
mvn test -Dtest=ClassTests -pl module-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment