Update SonarQube configuration in CI pipeline
Added the `sonar.tests` property to specify the test directory for SonarQube analysis. This ensures better accuracy in test coverage measurement and aligns with the project's structure.
This commit is contained in:
@@ -56,6 +56,7 @@ sonarcloud_scan:
|
||||
-Dsonar.token=${SONAR_TOKEN} \
|
||||
-Dsonar.branch.name=develop \
|
||||
-Dsonar.projectBaseDir=${CI_PROJECT_DIR} \
|
||||
-Dsonar.tests=src/test/java \
|
||||
-Dsonar.test.exclusions=src/test/**,src/test/**/*,src/test/java/**/*,src/test/resources/**/* \
|
||||
-Dsonar.exclusions=docs/** \
|
||||
-Dsonar.java.binaries=target/classes
|
||||
|
||||
Reference in New Issue
Block a user