Team City-添加Gallio测试结果xml以建立显示 [英] Team City - Add Gallio test result xml to build display

查看:103
本文介绍了Team City-添加Gallio测试结果xml以建立显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将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以建立显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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