HBASE-26934: Publish code coverage reports to SonarQube (#106)
authorHorváth Dóra <horvath.dora06@gmail.com>
Thu, 16 Jun 2022 11:47:11 +0000 (13:47 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Jun 2022 11:47:11 +0000 (13:47 +0200)
commitbd0fe94f9adafe434aa8826700b1511f78456491
tree05e4440d064a04f30b3a868cc098a7b698a7a12a
parent6f0796f09a583a6dd3063b5d915b0710da9a0314
HBASE-26934: Publish code coverage reports to SonarQube (#106)

The newly added script runs maven with the clover profile which generates the test coverage data.
If the necessary parameters are given it also uploads the results to SonarQube.

The required parameters for publishing to SonarQube are:

- Host URL
- Login Credentials
- Project Key

Example commands:

Run clover code analysis (without publishing to SonarQube)
sh dev-support/code-coverage/run-coverage.sh

Run clover code analysis and publish the results to SonarQube
sh dev-support/code-coverage/run-coverage.sh -l ProjectCredentials -u https://exampleserver.com -k Project_Key -n Project_Name

Co-authored-by: Dora Horvath <dora.horvath@cloudera.com>
dev-support/code-coverage/README.md [new file with mode: 0644]
dev-support/code-coverage/run-coverage.sh [new file with mode: 0644]
pom.xml