Test coverage reports and test execution reports are important metrics to help you assess the quality of your code.
Below, you'll find guidelines and resources, as well as language- and tool-specific analysis parameters.
General guidelinesBefore importing test coverage, you need to have the appropriate SonarScanner configured to perform code analysis as part of your build pipeline.
To enable coverage reporting, you must then do the following:
Now, on each build of your project, your coverage tool should perform its analysis and output its results to one or more files (usually one for test coverage and one for test execution). Then, the SonarScanner, as part of its analysis process, will import those files and send the results to SonarQube Server.
Coverage supportSonarQube Server directly supports the import of coverage data in formats native to a variety of tools for a variety of languages. It also supports the import of a generic format that can be used as a target for custom conversion of reports from tools that are not directly supported.
Detailed guidesDetailed guides for the following languages are provided in this section:
See Generic test data for information on how the generic format works.
Test coverage parametersSee Test coverage parameters for a reference on all coverage-related analysis parameters.
Test execution reportsThis section is about test coverage reports, that is, reports that describe the percentage of your code that is tested by your test suite during a build.
Test execution reports are a separate feature. These describe which tests within your tests suite are executed during a build. For details, see Test execution parameters.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4