在没有mstest.exe的情况下运行VSTS测试 [英] Running VSTS tests without mstest.exe
问题描述
出于我不愿讨论的原因,我们所有的单元测试都使用VSTS测试框架.现在,我想创建一个运行测试的MSBuild脚本,但是由于各种原因,我不想使用mstest.exe(运行速度较慢,需要在所有位置安装Visual Studio,我需要维护testrunconfig等).
From reasons I won't get into, all our unit tests are using the VSTS test framework. I now want to create an MSBuild script that runs the tests, but I don't want to use mstest.exe from various reasons (it's slower, requires Visual Studio installation everywhere, I need to maintain testrunconfig, etc.)
我已经看到TestDriven.net和TeamCity能够在不使用mstest.exe的情况下运行"NUnit风格"的VSTS测试.您知道执行此操作的任何独立命令行实用程序吗?
I've seen that TestDriven.net and TeamCity are able to run VSTS tests 'NUnit style', without using mstest.exe. Are you aware of any standalone command line utility that does this?
推荐答案
如果使用可识别MS测试属性(TestClass等)的特殊NUnit插件,则可以在NUnit中执行团队系统测试(MSTest).
You can execute Team System Tests (MSTest) in NUnit if you use a special NUnit Addin that recognizes the MS Test Attributes (TestClass, etc).
Exact Magic软件具有 open-可以做到这一点的源代码"test-adapter" .
Exact Magic Software has an open-source "test-adapter" that can do this.
更新:我已经为NUnit 2.5.2重新设计了Exact Magic的Msts NUnit适配器.
UPDATE: I've reworked Exact Magic's Msts NUnit Adapter for NUnit 2.5.2.
- 在此处下载: http://snippetware.googlecode.com/files/ExactMagic.MstsAdapter .zip
- 详细了解它此处:http://www.bryancook. net/2009/10/mstest-nunit-adapter.html
- Download here: http://snippetware.googlecode.com/files/ExactMagic.MstsAdapter.zip
- Read more about it here: http://www.bryancook.net/2009/10/mstest-nunit-adapter.html
这篇关于在没有mstest.exe的情况下运行VSTS测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!