Run Gradle Build without test cases

If you are trying to run your project from your IDE as you are trying to fix or develop something, it could be annoying to have the test cases run before every build as it takes up a lot of time.

If you want to skip the test cases and just perform a Gradle Build, you can do that by adding a flag -x or --exclude-task followed by test.


Windows:
./gradlew build -x test

Linux/macOS:
gradlew build -x test
Gradle Build without test cases

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!