I\'m following this tutorial to add integration test env to my Android project.
I have create src/integrationTest/java
and src/integrationTest/resources
Solved! Actually, these lines don't have to be in source set config, but in the task that runs integration tests. Now, my build.gradle
looks like:
sourceSets {
integrationTest {
java.srcDir file('src/integrationTest/java')
resources.srcDir file('src/integrationTest/resources')
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
}
task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
}