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>