问题描述
我将TeamCity与 Gallio / XUnit / Specflow
结合使用,并尝试显示我们的单元/验收测试结果。我相信输出是 NUnit
xml测试结果格式。
Im using TeamCity with Gallio/XUnit/Specflow
and trying to display our unit/acceptance test results. I believe the output is NUnit
xml test result format.
我们的单元测试使用带有Gallio的命令运行程序自动显示。验收测试通过一个大型的Powershell脚本运行,该脚本调用Gallio(Run-Gallio)。
Our unit tests auotmatically display using the command runner with Gallio. The acceptance tests are run through a large Powershell script which calls Gallio (Run-Gallio).
结果输出到accepting-test-results.xml。是否可以在 TeamCity(6.5.5)
中显示acceptance-test-results.xml?
Results are output to acceptance-test-results.xml. Is there a way to display the acceptance-test-results.xml in TeamCity (6.5.5)
?
推荐答案
要在PowerShell脚本中执行此操作,请添加以下
To do this in a PowerShell script add the following
Write-Output "##teamcity[importData type='nunit' path='C:\SomeDirectory\YourResults.xml']"
这篇关于Team City-添加Gallio测试结果xml以建立显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!