Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/198.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何配置Sonar runner属性来读取android单元测试和junit测试的junit报告_Android_Gradle_Android Gradle Plugin_Sonar Runner - Fatal编程技术网

如何配置Sonar runner属性来读取android单元测试和junit测试的junit报告

如何配置Sonar runner属性来读取android单元测试和junit测试的junit报告,android,gradle,android-gradle-plugin,sonar-runner,Android,Gradle,Android Gradle Plugin,Sonar Runner,我的have项目几乎没有android单元测试用例和junit测试用例,它使用androidgradle插件生成两个不同的报告 在为项目配置sonar runner属性时,我发现可以设置'sonar.junit.reportsPath'属性,使junit报告数据对sonar runner有用。我在build.gradle文件中进行了以下配置 sonarRunner { sonarProperties { //...

我的have项目几乎没有android单元测试用例和junit测试用例,它使用androidgradle插件生成两个不同的报告

在为项目配置sonar runner属性时,我发现可以设置'sonar.junit.reportsPath'属性,使junit报告数据对sonar runner有用。我在build.gradle文件中进行了以下配置

sonarRunner {
            sonarProperties {
                //... 
                property 'sonar.junit.reportsPath', 'build/outputs/androidTest-results/connected/'
                //... 
            }
          }
但它一次只允许一条路径。是否可以在“sonar.junit.reportsPath”中包含这两个报告

以下是我的项目结构:


集成测试有一个sonarqube属性:

property 'sonar.jacoco.itReportPath'

你找到解决办法了吗?@pablo还没找到