- Execute one integration test:
./gradlew integrationTest --tests=*SomeTestClass
- Execute tasks parallel:
./gradlew clean build --parallel
- Skip test:
gradle build -x test
- Better logging in tests:
test {
testLogging {
exceptionFormat = 'full'
}
}
- Run application tests with debugger agent
gradle test --debug-jvm
- Refresh dependencies
./gradlew clean build --refresh-dependencies
- Run in custom environment
-Dspring.profiles.active=dev