diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c4bf76ac..bfe4c5e1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -39,7 +39,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn -B clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=artemis-java-test-sandbox -Dsonar.organization=maisikoleni -Dsonar.host.url=https://sonarcloud.io + run: mvn -B -P coverage clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=artemis-java-test-sandbox -Dsonar.organization=maisikoleni -Dsonar.host.url=https://sonarcloud.io deploy: if: startsWith(github.event.ref, 'refs/tags/') needs: test diff --git a/pom.xml b/pom.xml index f78e2bf1..174ff9ac 100644 --- a/pom.xml +++ b/pom.xml @@ -39,6 +39,8 @@ 1.3.1 UTF-8 UTF-8 + + D1A045E1DD48B876 @@ -149,7 +151,7 @@ maven-surefire-plugin 3.0.0-M4 - -Dfile.encoding=UTF-8 + @{argLine} -Dfile.encoding=UTF-8 alphabetical @@ -186,6 +188,33 @@ + + + coverage + + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + + + + prepare-agent + + + + report + test + + report + + + + + + + github diff --git a/src/main/java/de/tum/in/test/api/security/SecurityConstants.java b/src/main/java/de/tum/in/test/api/security/SecurityConstants.java index aad51cf4..b8cff192 100644 --- a/src/main/java/de/tum/in/test/api/security/SecurityConstants.java +++ b/src/main/java/de/tum/in/test/api/security/SecurityConstants.java @@ -14,13 +14,14 @@ public final class SecurityConstants { static final Set STACK_WHITELIST = Set.of("java.", "org.junit.", "jdk.", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ "org.eclipse.", "com.intellij", "org.assertj", "org.opentest4j.", // $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - "com.sun.", "sun.", "org.apache.", "de.tum.in.test.", "net.jqwik", "ch.qos.logback", SECURITY_PACKAGE_NAME); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ + "com.sun.", "sun.", "org.apache.", "de.tum.in.test.", "net.jqwik", "ch.qos.logback", "org.jacoco", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ + SECURITY_PACKAGE_NAME); static final Set STACK_BLACKLIST = Set.of(BlacklistedInvoker.class.getName()); static final Set PACKAGE_USE_BLACKLIST = Set.of(SECURITY_PACKAGE_NAME, "java.lang.reflect", "de.tum.in.test.api.internal", "jdk.internal"); - + private SecurityConstants() { - + } }