From f9278fd4b70131def7371372802c442767c775d4 Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Mon, 21 Apr 2025 14:42:58 +0200 Subject: [PATCH] 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. --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d0b5c78..10b7e59 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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