如何从集成测试中指定 JUnit 结果的路径? [英] How can I specify the path to JUnit results from integration tests?

查看:22
本文介绍了如何从集成测试中指定 JUnit 结果的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我知道有 sonar.junit.reportsPath 由 Java 插件读取并采用单个 XML 文件目录进行解析.

So I know there is sonar.junit.reportsPath that is read by the Java plugin and takes a single directory of XML files to parse.

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

But what if I do not have one directory of test results, but two, specifically one for unit tests and one for integration tests? The more recent versions of Sonarqube gained some support for reporting coverage of these different test results via sonar.jacoco.reportPath and sonar.jacoco.itReportPath. I also find some references on the internet about sonar.junit.itReportsPath, but not in the official documentation or sources, so I guess its unsupported.

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

TL;DR - where can I specify the path to integration test results?

软件:Sonarqube 5.1.1,Sonarqube-Runner 2.4

Software: Sonarqube 5.1.1, Sonarqube-Runner 2.4

推荐答案

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

This feature is not available. Feel free to vote for https://jira.sonarsource.com/browse/SONAR-4101

这篇关于如何从集成测试中指定 JUnit 结果的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆