tree: 0de1a6c0c6c0018ca8ae3d77376cfa3329653b14 [path history] [tgz]
  1. README.md
  2. run-coverage.sh
dev/code-coverage/README.md

Clover code analysis

The run-coverage.sh script runs maven with the code-coverage profile which generates the clover code analysis data. If the necessary parameters are given it also uploads the results to SonarQube.

Running code coverage

The coverage results can be found under target/clover/index.html and here is how you can run the clover code analysis:

./dev/code-coverage/run-coverage.sh

Publishing coverage results to SonarQube

The required parameters for publishing to SonarQube are:

  • host URL,
  • login credentials,
  • project key

The project name is an optional parameter.

Here is an example command for running and publishing the coverage data:

./dev/code-coverage/run-coverage.sh -l ProjectCredentials -u https://exampleserver.com -k Project_Key -n Project_Name