How to Run Gradle Build Without Unit Test Cases

If for some reason you are doing some tests and your Gradle project builds over and over again and it takes a long time to build it, it could slow down your progress, one reason for your build taking a long time could be the test cases.

To disable unit test cases and do a Gradle build of your Java/Android Project you can add the option -x test to ignore them.


Examples:
% ./gradlew build -x test
% gradle build -x test
Gradle Build without Unit Test Cases

Comments & Discussion

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