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

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

问题描述

所以我知道Java插件会读取sonar.junit.reportsPath,并且需要一个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报告这些不同的测试结果.我还在Internet上找到了一些有关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天全站免登陆