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.

./gradlew build -x test

gradlew build -x test
Gradle Build without test cases

Facing issues? Have Questions? Post them here! I am happy to answer!

Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap