Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
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
29 changes: 27 additions & 2 deletions checkmarx-ast-eclipse-plugin-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@
<groupId>com.checkmarx.ast.eclipse</groupId>
<artifactId>checkmarx-eclipse-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
</parent>

</project>
<build>
<plugins>
<!-- Adding JaCoCo plugin for code coverage -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<phase>prepare-agent</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading