TL:DR
I am looking for a way to make sure our Instrumentation testing suite compiles, but without actually running it. Is it possible to achieve that using the Android plugin for Gradle
?
I looked over official documentation and I don't see anything other than a Gradle command that compiles and then runs tests together.
The reason I am looking for this is we want to be able to run a build on every Pull Request but running the suite takes way too long. Yet we want to make sure the instrumentation suite at least compiles with all the code changes so it can run in its time.
Thanks for your help
Found the Gradle
task to achieve this:
$ ./gradlew compileDebugAndroidTestJavaWithJavac
Above task will compile Instrumented tests without actually running them.