Monday, March 28, 2022

Gitlab Code Coverage

 Clone the below repository

https://gitlab.com/ramansharma95/test.git


Goto Gitlab Project and Goto Settings-->CICD-->General 

In the test coverage parsing add below expression

Total.*?([0-9]{1,3})%

Goto General Settings--->Badges

Badge name is Coverage

Link

https://gitlab.com/ramansharma95/%{project_path}/badges/%{default_branch}/coverage.svg


Badge Image URL

https://gitlab.com/%{project_path}/badges/%{default_branch}/coverage.svg?style=flat


Goto test folder

mvn clean package command

goto target/stie/jacco/index.html



0 comments:

Post a Comment