Code coverage statistics data is empty and coverage badge is unknown

Viewed 99

I'm using Jacoco for code coverage and visualizing it, visualizing is working well but Code coverage statistics data is empty and the coverage badge is unknown. The gitlab-ci file for the test is :

test-ut:
stage: test
image: maven:3.6.3-jdk-11
script:
   - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent -Dgroups="unit-test" test jacoco:report
artifacts:
paths:
  - target/site/jacoco/jacoco.xml
  - target/site/jacoco/index.html
coverage: '/Total.*?([0-9]{1,3})%/'

Coverage report : Coverage report

Code coverage statistics enter image description here

0 Answers
Related