如何将nunit-config-file迁移到mstest?

时间:2009-06-15 07:48:01

标签: unit-testing nunit mstest

我会将所有单元测试从nunit迁移到mstest。在解决方案中,我有一个nunit-config文件,看起来像这样:

<NUnitProject>
<Settings activeconfig="Web">
<Config name="Web" appbase="Web" configfile="web.config" binpathtype="Auto">
    <assembly path="bin\Product.NUnit.ComponentA.dll"/>
    <assembly path="bin\Product.NUnit.ComponentB.dll"/>
    <assembly path="bin\Product.NUnit.ComponentC.dll"/>
</Config>
</NUnitProject>

现在的问题是,我怎么能在mstest中做到这一点?

1 个答案:

答案 0 :(得分:1)

您可以使用MSBuild执行“MSTest-Task”... 看看这里:http://blogs.microsoft.co.il/blogs/ndobkin/archive/2007/12/16/mstest-task-for-msbuild.aspx