I would like to set sonar.tests property to src/integrationTest/java only if the integrationTest folder is present. How to do that ?
Currently it is taking Test paths: src/test/java only
want to do like → Test paths: src/test/java,src/integrationTest/java ( if integrationTest folder is there)
sonarqube {
properties {
property {
// How to add condition if integrationTest folder presents
// I am doing this from build.gradle.
property ‘sonar.tests’, ‘/integrationTest/java/’
}
}
}
Thanks .