Configure the analysis parameters of the SonarScanner so that it can import the report files.Configure the coverage tool so that the location and format of the output report files match what the SonarScanner expects.Your coverage tool should be set up to run before the SonarScanner analysis. Set up your coverage tool to run as part of your build pipeline.To enable coverage reporting, you must then do the following: General guidelinesīefore importing test coverage, you need to have the appropriate SonarScanner configured to perform code analysis as part of your build pipeline. To include coverage results in your analysis, you must set up a third-party coverage tool and configure SonarQube to import the results produced by that tool.īelow, you'll find guidelines and resources, as well as language- and tool-specific analysis parameters. SonarQube itself does not calculate coverage. Test execution reports tell you which tests have been run and their results. Test coverage reports tell you what percentage of your code is covered by your test cases. Test coverage reports and test execution reports are important metrics in assessing the quality of your code.
0 Comments
Leave a Reply. |