在VS 2012中保存/导出单元测试结果 [英] Saving/Exporting Unit Test Results in VS 2012

查看:47
本文介绍了在VS 2012中保存/导出单元测试结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在VS 2012中导出单元测试结果?我知道从来没有直接的方法(即使应该这样做),但至少在2012年,我能够从测试结果窗口中保存结果,并使用trx2html将其转换为可读的内容.在2012年,我从测试浏览器中看不到有任何方法可以做到这一点.单元测试结果是我们项目文档的一部分,因此我做到这一点的能力很重要.

How can I export unit tests results in VS 2012? I know there's never been a direct way to do it (even though there should be), but at least in 2012 I was able to save the results from the test result window, and use trx2html to convert them into something readable. In 2012, I don't see any way to do this from the test explorer. Unit tests results are part of our project documentation, so my ability to do this is important.

任何提示都会有所帮助,谢谢!

Any tips would be helpful, thanks!

推荐答案

在VS2012中使用新的执行引擎时,当前无法从IDE导出结果.但是,您可以使用/logger:trx选项通过命令行vstest.console.exe来实现.

There is currently no way to export your results out from the IDE while using the new execution engine in VS2012. However you can achieve this via the commandline vstest.console.exe using the /logger:trx option.

这篇关于在VS 2012中保存/导出单元测试结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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