From a35a81334c868ffd85ad8bb8faa1ba091c1bdd18 Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Wed, 18 Jun 2025 16:37:10 +0300 Subject: [PATCH] Test and jacoco config cleanup (#2469) Signed-off-by: Avgustin Marinov Co-authored-by: github-actions[bot] --- .github/workflows/license-scan.yml | 2 +- pom.xml | 47 ++++++++++++++++++++++-------- 2 files changed, 36 insertions(+), 13 deletions(-) diff --git a/.github/workflows/license-scan.yml b/.github/workflows/license-scan.yml index 263b9048c..cbc50f7c0 100644 --- a/.github/workflows/license-scan.yml +++ b/.github/workflows/license-scan.yml @@ -37,7 +37,7 @@ jobs: - name: Check dependency licenses with dash tool run: | mvn clean install -DskipTests -DskipJavadoc --batch-mode - mvn license-tool:license-check -DexcludeGroupIds=org.eclipse.hawkbit -Ddash.fail=false -Plicense -Ddash.iplab.token=${GITLAB_API_TOKEN} --projects '!org.eclipse.hawkbit:hawkbit-repository-test,!org.eclipse.hawkbit:hawkbit-dmf-rabbitmq-test' + mvn license-tool:license-check -Ddash.fail=false -Plicense -Ddash.iplab.token=${GITLAB_API_TOKEN} --projects '!org.eclipse.hawkbit:hawkbit-repository-test,!org.eclipse.hawkbit:hawkbit-dmf-rabbitmq-test' CHANGED_FILES_COUNT=$(git status --short | wc -l) CHANGED_FILES_COUNT=${CHANGED_FILES_COUNT//[[:space:]]/} echo "Number of changed files: ${CHANGED_FILES_COUNT}" diff --git a/pom.xml b/pom.xml index c5ebf3dd1..863ee1ea6 100644 --- a/pom.xml +++ b/pom.xml @@ -53,12 +53,13 @@ 2025.0.0 2.8.9 3.0.0 + + - 4.0.6 3.0.2 @@ -94,6 +95,13 @@ 3.2.7 + + 1 + + 1 + -Xmx1024m + + https://sonarcloud.io LOCAL_SCAN @@ -102,12 +110,16 @@ https://www.eclipse.org/hawkbit https://github.com/eclipse-hawkbit/hawkbit/actions - **/target/generated-sources/apt/**,**/src/test/**,**/src/main/java/org/eclipse/hawkbit/repository/test/** + **/target/generated-sources/apt/**, + **/src/test/**, + **/src/main/java/org/eclipse/hawkbit/repository/test/** - **/src/main/java/org/eclipse/hawkbit/ui/**,**/target/generated-sources/apt/**,**/src/main/java/org/eclipse/hawkbit/repository/test/** + **/target/generated-sources/apt/**, + **/src/test/**, + **/src/main/java/org/eclipse/hawkbit/repository/test/**, + **/src/main/java/org/eclipse/hawkbit/ui/** - ${project.build.directory} ${project.basedir}/../hawkbit-test-report/target/jacoco-aggregate/jacoco.xml, ${project.basedir}/../../hawkbit-test-report/target/jacoco-aggregate/jacoco.xml @@ -123,11 +135,6 @@ ${project.build.directory}/.3rd-party/DEPENDENCIES_REVIEW org.eclipse,org.junit - - - 1 - - @@ -519,7 +526,7 @@ false true ${surefire.forkcount} - ${jacoco.agent.ut.arg} ${test.jvm.args} + ${surefire.jvm.args} listener @@ -542,8 +549,8 @@ ${maven.failsafe.plugin.version} false - ${surefire.forkcount} - -Xmx1024m ${jacoco.agent.ut.arg} + ${failsafe.forkcount} + ${failsafe.jvm.args} listener @@ -586,6 +593,22 @@ jacoco.agent.it.arg + + + report-ut + prepare-package + + report + + + + + report-it + post-integration-test + + report-integration + +