如何将 NUnit 配置文件迁移到 MSTest?

发布于 2024-07-24 06:31:05 字数 518 浏览 8 评论 0原文

我想将所有单元测试从 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>

How can I do that in MSTest?

I would like to migrate all my unit tests from NUnit to MSTest. In the solution I have a NUnit configuration file, which looks like this:

<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>

How could I do that in MSTest?

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

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

发布评论

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

评论(1

格子衫的從容 2024-07-31 06:31:05

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

You can use MSBuild to execute a "MSTest-Task"...
Have a look here: MSTest task for MSBuild

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文