1

我想将我所有的单元测试从 NUnit 迁移到 MSTest。在解决方案中,我有一个 NUnit 配置文件,如下所示:

<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 中做到这一点?

4

1 回答 1

1

您可以使用 MSBuild 执行“MSTest-Task”... 看看这里:MSBuild 的 MSTest 任务

于 2009-07-02T08:26:15.980 回答