我在中设置了一个连续集成服务器。我能够构建我的代码并通过最可缩放的运行我的测试。
但是,我不知道如何以JUnit格式输出结果。对于使用SBT的人,我已经看到了许多结果,但没有人使用Maven。
在配置下,'junitxml‘标记应该生成正确的文件吗?这意味着这将是微软的一个问题。
目前,我的最有规模的插件如下:
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>${maven.plugin.scalatest.version}</version>
<configuration>
<reportsDirectory>${project.build.directory}/scalatest-reports</reportsDirectory>
<junitxml>jUnitResults</junitxml>
<filereports>SparkTestSuite.txt</filereports>
</configuration>
<executions>
<execution>
<id>test</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>更新1:
无效的结果文件。确保文件'C:/a/1/s/common/target/scalatest-reports/jUnitResults/TEST-org.scalatest.tools.DiscoverySuite-2d5739be-0653-4b9d-a8ed-41b6d0f82e48.xml‘的结果格式与“JUnit”测试结果格式匹配。
发布于 2016-09-29 00:30:47
我想我能想出办法。我的问题是我对VSTS的误解。但是,我的测试既生成了JUnit格式的测试结果,也生成了非JUnit格式的结果。因此,在我的构建配置中,我需要删除不必要的测试结果文件。VSTS不是最直观的工具,所以我对测试结果的去向感到困惑。我的构建文件显示了通过测试的数量,但没有显示细节。我发现,如果测试在构建过程中失败,那么失败的详细信息将显示在构建页面上。如果我想查看通过的测试的实际名称,我需要转到"Test“选项卡,然后在”Run“下面查看。在那里,我将看到一个更详细的结果。
https://stackoverflow.com/questions/39730260
复制相似问题