相关疑难解决方法(0)

由于没有类文件,因此无法对项目范围进行JaCoCo分析

我使用Bamboo,SonarQube和Maven插件在SonarQube中生成Jacoco报告.它正在生成jacoco.exec文件,但如何在SonarQube中显示报告?以下插件我正在使用'

<plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.7.201606060606</version>
                <executions>
                    <execution>
                        <id>pre-unit-test</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                        <configuration>
                            <!-- Sets the path to the file which contains the execution data. -->
                            <destFile>${project.build.directory}/jacoco.exec</destFile>
                            <!-- Sets the name of the property containing the settings for JaCoCo 
                                runtime agent. -->
                            <propertyName>surefireArgLine</propertyName>
                        </configuration>
                    </execution>
                    <!-- Ensures that the code coverage report for unit tests is created 
                        after unit tests have been run. -->
                    <execution>
                        <id>post-unit-test</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                        <configuration>
                            <!-- Sets the path to the file which contains the …
Run Code Online (Sandbox Code Playgroud)

jacoco jacoco-maven-plugin

3
推荐指数
1
解决办法
5594
查看次数

标签 统计

jacoco ×1

jacoco-maven-plugin ×1