Created
May 14, 2014 17:06
-
-
Save elnur/9506d4edf6e49d6d0167 to your computer and use it in GitHub Desktop.
Separating Different Types of Tests in Gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sourceSets { | |
| apiTest { | |
| compileClasspath += main.output + test.output | |
| runtimeClasspath += main.output + test.output | |
| } | |
| } | |
| configurations { | |
| apiTestCompile.extendsFrom testCompile | |
| apiTestRuntime.extendsFrom testRuntime | |
| } | |
| task apiTest(type: Test) { | |
| testClassesDir = sourceSets.apiTest.output.classesDir | |
| classpath = sourceSets.apiTest.runtimeClasspath | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment