【问题标题】:Add unit test to unit test session or to Nunit, by list of unit test case names通过单元测试用例名称列表将单元测试添加到单元测试会话或 Nunit
【发布时间】:2015-01-16 15:56:22
【问题描述】:

我们为项目编写了近 20000 个单元测试,如果我做出任何可能导致现有单元测试失败的更改。现在有近 100 个单元测试失败,我有单元测试用例列表失败。

问题是我有什么方法可以将所有这 100 个失败的单元测试用例添加到 resharper 单元测试会话或 Nunit 中。

是否有任何 nunit 适配器或 resharper 扩展允许我从 csv 文件等文件中提供单元测试用例名称列表,将其添加到 nunit 或 resharper 单元会话?

那些失败的单元测试用例可能来自不同的类别。我需要手动运行或添加到单元测试会话。

【问题讨论】:

    标签: c# unit-testing nunit resharper-7.1


    【解决方案1】:

    你可以使用 NUnit 控制台,

    nunit-console /runlist:testlist.txt nunit.tests.dll

    参考:http://nunit.org/index.php?p=consoleCommandLine&r=2.6.3

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-01-08
      • 2023-03-27
      • 2013-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-15
      • 1970-01-01
      相关资源
      最近更新 更多