【问题标题】:How can I specify the path to JUnit results from integration tests?如何从集成测试中指定 JUnit 结果的路径?
【发布时间】:2016-01-28 04:01:08
【问题描述】:

所以我知道有 sonar.junit.reportsPath 被 Java 插件读取并需要一个 XML 文件目录来解析。

但是,如果我没有一个测试结果目录,而是两个目录,一个用于单元测试,一个用于集成测试,该怎么办?较新版本的 Sonarqube 获得了一些支持,可以通过 sonar.jacoco.reportPathsonar.jacoco.itReportPath 报告这些不同测试结果的覆盖率。我还在互联网上找到了一些关于sonar.junit.itReportsPath 的参考资料,但在官方文档或来源中没有,所以我猜它不受支持。

TL;DR - 我在哪里可以指定集成测试结果的路径?

软件:Sonarqube 5.1.1, Sonarqube-Runner 2.4

【问题讨论】:

    标签: unit-testing junit sonarqube integration-testing


    【解决方案1】:

    此功能不可用。欢迎投票给https://jira.sonarsource.com/browse/SONAR-4101

    【讨论】:

    • 那么有哪些替代方案?在执行 Sonar 之前将所有 XML 文件复制到一个位置?
    • 我现在正在做这个。
    猜你喜欢
    • 2016-11-29
    • 2014-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多