团队城市 + Gallio 运行测试,但未显示结果

发布于 2024-09-02 06:43:12 字数 759 浏览 2 评论 0原文

我们最近更新到 Visual Studio 2010,作为升级的一部分,我们开始使用 Gallio 3.2 预发布版本。在 Visual Studio 中一切运行良好(通过 resharper),但我在 TeamCity 集成方面遇到问题。这些测试似乎在 TeamCity 构建期间运行得很好(我们的构建需要足够长的时间才能运行所有测试),但测试并未显示在 TeamCity 的测试区域中。这是我们的 NANT 构建文件中的测试目标(这在我们的升级中根本没有改变)。是否有让测试显示在 TeamCity 中的技巧,或者这是否在最新版本的 Gallio 中被破坏了?

<目标名称=“runTests”>
<加里奥
result-property="exitCode"
failonerror="false">

<程序集>



We recently updated to Visual Studio 2010, and as part of our upgrade we started using Gallio 3.2 prerelease builds. Everything runs fine in Visual Studio (through resharper) but I'm having problems with TeamCity integration. The tests seem to run during TeamCity builds just fine (our build takes long enough to run all our tests), but the tests are not showing up in TeamCity's test area. Here is the test target from our NANT build file (this hasn't changed in our upgrade at all). Is there a trick to getting the tests to show up in TeamCity or is this something that's broken in the latest builds of Gallio?

<target name="runTests">
<gallio
result-property="exitCode"
failonerror="false">
<runner-extension value="TeamCityExtension,Gallio.TeamCityIntegration" />
<assemblies>
<include name="..\Source\Tests\${testProject}\bin\Debug\${testProject}.dll" />
</assemblies>
</gallio>
</target>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

箜明 2024-09-09 06:43:12

尝试像这样设置 echo-r​​esults="true"

<target name="runTests">
<gallio
result-property="exitCode"
echo-results="true"
failonerror="false">
<runner-extension value="TeamCityExtension,Gallio.TeamCityIntegration" />
<assemblies>
<include name="..\Source\Tests\${testProject}\bin\Debug\${testProject}.dll" />
</assemblies>
</gallio>
<fail if="${exitCode != '0'}" >One or more tests failed. Please check the log for more details</fail>    
</target> 

Try setting echo-results="true" like this:

<target name="runTests">
<gallio
result-property="exitCode"
echo-results="true"
failonerror="false">
<runner-extension value="TeamCityExtension,Gallio.TeamCityIntegration" />
<assemblies>
<include name="..\Source\Tests\${testProject}\bin\Debug\${testProject}.dll" />
</assemblies>
</gallio>
<fail if="${exitCode != '0'}" >One or more tests failed. Please check the log for more details</fail>    
</target> 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文