【发布时间】:2020-08-30 14:56:39
【问题描述】:
我只想在命令行执行期间从下面排除 1 个测试用例参数
nunit3-console.exe Excel.Test.dll --where="cat!=IgnoreForNow"
但这不包括所有参数(A、B、C、D)
[TestCase("A"), Category("IgnoreForNow")]
[TestCase("B")]
[TestCase("C")]
[TestCase("D")]
public void TestReports(string fileName)
{
Test("foo", fileName);
}
我不想使用忽略属性,因为我想在构建系统中跳过这个测试用例执行,但想在本地执行它们。
从命令行执行时 NUnit 中有什么方法吗
【问题讨论】:
标签: c# unit-testing jenkins nunit nunit-console