Open
Description
As of now, SonarCloud does not support plugins, therefore no mutation analysis issues can be added to SonarCloud projects.
However, it provides a way to add externally raised issues to the analysis using the Generic Issue Data Format. Although this would not include coverage data and metrics, it's a way to raise issue for surviving mutations.
A very simple approach would be to add an executable java class to the plugin jar (or even make the jar itself executable) that parses the reports as the plugin itself would do and produces a json report with the issues instead of creating the issues via API.
For build pipelines one could use it in these steps (example, not final solution)
- mvn clean install -Ppit *
- java -jar plugin.jar GenerateIssueReportClass
- mvn sonar:sonar -Dsonar.externalIssuesReportPaths=issueReport.json
*) profile pit activates pitest mutation testing