I would like to use the Java “test” task from the Java plugin to a Gradle Android project.
The Android plugin version 0.3 doesn’t offer the “test” task and I was wondering if there is a way to reuse the java test task instead of writing a complete custom “test” task (and the depending tasks: compileTest, …) from scratch. Why: The actual android plugin version 0.3 doesn’t support unit testing, only instrument-test which require a device to run the test on. Some unofficial tools like Robolectric allow to do classic unit testing without the need to run the tests on a device or emulator.
Thanks a lot for Gradle, it’s really a wonderful tool.