diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2ece4b90..ca8f1360 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,7 +23,7 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- - name: Run tests with Maven
+ - name: Run tests with Maven and generate coverage report
env:
CX_BASE_URI: ${{ secrets.CX_BASE_URI }}
CX_TENANT: ${{ secrets.CX_TENANT }}
@@ -32,4 +32,11 @@ jobs:
CX_NOT_MATCH_TEST_PROJECT: ${{ secrets.CX_NOT_MATCH_TEST_PROJECT }}
run: |
export DISPLAY=:99.0
- Xvfb -ac :99 -screen 0 1920x1080x16 & mvn clean install
\ No newline at end of file
+ Xvfb -ac :99 -screen 0 1920x1080x16 &
+ mvn clean verify
+
+ - name: Upload Coverage Report
+ uses: actions/upload-artifact@v3
+ with:
+ name: jacoco-report
+ path: target/site/jacoco/index.html
diff --git a/checkmarx-ast-eclipse-plugin-tests/pom.xml b/checkmarx-ast-eclipse-plugin-tests/pom.xml
index 416f50f0..bdec030a 100644
--- a/checkmarx-ast-eclipse-plugin-tests/pom.xml
+++ b/checkmarx-ast-eclipse-plugin-tests/pom.xml
@@ -10,6 +10,31 @@
com.checkmarx.ast.eclipse
checkmarx-eclipse-plugin
1.0.0-SNAPSHOT
-
+
-
\ No newline at end of file
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.8
+
+
+ prepare-agent
+
+ prepare-agent
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
+
+
+