Deepomatic / dmake

DMake is a tool to manage micro-service based applications
MIT License
36 stars 3 forks source link

Use supported coverage plugin #569

Closed vdel closed 3 months ago

vdel commented 4 months ago

The Code Coverage Plugin is deprecated and does not work anymore.

We follow the instruction of the linked page and replace publishCoverage by recordCoverage.

This has been tested on Jenkins, it leads to the apparition of 2 menu entries below "Test result", that were not present before this PR:

Capture d’écran 2024-07-21 à 20 56 54

The "Coverage report" looks like this:

Capture d’écran 2024-07-21 à 20 58 52
sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

vdel commented 3 months ago

do we still need one unique record step globally like it was for CoberturaPublisher?

I do not know. I guess so, as it is likely to show only one entry in the left menu of the jobs.

next step: deploy it in jenkins before merging here, and see how our other repos behave.

OK, should I do it? Directly in the Jenkins container ?

later steps could be to publish results in github checks/comments

Indeed