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

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!