I can create the coverage report for unit testing in test task using,
testReportDirName = "tests/UT"
testResultsDirName = "test-results/UT"
But when i do the same using integration test coverage report in integrationtest task as,
testReportDirName = "tests/IT"
testResultsDirName = "test-results/IT"
When gradle clean build entered,i get the unit coverage report generated in tests/IT folder instead of tests/UT folder.
I am not calling the integrationtest task. It is changing the destination path.
Is there a way that i could generate the integrationtest report, like the way that is used to generate for unit test report?
In gradle 1.6, this was quite doable as follows,
test {
testReportDir = file("$buildDir/reports/tests/UT")
testResultsDir = file("$buildDir/test-results/UT")
jacoco {
destPath = file("$buildDir/jacoco/UT/jacocoUT.exec")
classDumpPath = file("$buildDir/jacoco/UT/classpathdumps")
}
}
task integrationTest( type: Test) {
testReportDir = file("$buildDir/reports/tests/IT")
testResultsDir = file("$buildDir/test-results/IT")
jacoco {
destPath = file("$buildDir/jacoco/IT/jacocoIT.exec")
classDumpPath = file("$buildDir/jacoco/IT/classpathdumps")
}
}
Aucun commentaire:
Enregistrer un commentaire