tree: 0de1a6c0c6c0018ca8ae3d77376cfa3329653b14 [path history] [tgz]

Clover code analysis

The 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:


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/ -l ProjectCredentials -u -k Project_Key -n Project_Name