【问题标题】:What advantages/disadvantages do MSTest and NUnit have compared to each other?MSTest 和 NUnit 相比有哪些优点/缺点?
【发布时间】:2023-03-28 00:45:02
【问题描述】:

自从 Microsoft 创建 MSTest 以来,我一直在使用它进行单元测试。我从来没有真正使用过 NUnit,我只是不喜欢在我的开发盒上安装另一个工具。目前我只使用了MSTest的基本功能,它们已经满足了我的需求,我对NUnit还不是很了解。

有人可以列出使用 MSTest 和 NUnit 的一些缺点和优点吗?

【问题讨论】:

    标签: unit-testing nunit comparison mstest


    【解决方案1】:

    这是一个不错的博客,列出了 MSTest 和 NUnit http://blogs.msdn.com/nnaderi/archive/2007/02/01/mstest-vs-nunit-frameworks.aspx 之间的一些区别

    这里的这个链接比较了更多的单元测试框架http://www.codeplex.com/xunit/Wiki/View.aspx?title=Comparisons

    干杯

    【讨论】:

    • 给定的链接已失效。
    【解决方案2】:

    以下是对 Nunit,Mstest for Visual Studio 的最新评论: http://www.barebonescoder.com/2010/06/mstest-vs-nunit-with-visual-studio-2010-tdd/

    【讨论】:

      【解决方案3】:

      对于 .net 核心:

      NUnit 当时与 .NET Core 2 不完全兼容

      https://dev.to/hatsrumandcode/net-core-2-why-xunit-and-not-nunit-or-mstest--aei

      xUnit 中的一些新功能:

      https://dev.to/franndotexe/mstest-v2---new-old-kid-on-the-block

      【讨论】:

        猜你喜欢
        • 2018-02-13
        • 1970-01-01
        • 1970-01-01
        • 2020-11-20
        • 1970-01-01
        • 1970-01-01
        • 2021-01-02
        • 2010-11-30
        • 1970-01-01
        相关资源
        最近更新 更多