I have an android project where I run normal unit tests as well as instrumented tests.
Now the thing is that the results of the
build/reports/tests
(./debug
or ./release
) build/outputs/connected
Is it somehow possible to change the result directory of the instrumented tests to build/reports/tests/connected
?
Thank you already!
Found the answer myself, To change the directory for instrumented tests use:
android {
testOptions {
reportDir = "$project.buildDir/reports"
resultsDir = "$project.buildDir/test-results"
}
# Or for lint if needed
lintOptions {
htmlOutput = file("$project.buildDir/reports/lint/LINT-results.html")
xmlOutput = file("$project.buildDir/test-results/lint/LINT-results.xml")
}
}