运行 nunit3-console 中未设置类别的所有测试

Run all tests in nunit3-console with unset category

我正在尝试 运行 nunit3-console 测试,其中过滤器 returns 在未设置类别时为真。如何设置'no category specified'?我尝试了各种形式都没有成功。

nunit3-console MyTests.dll --where "cat == ''"

谢谢

不,目前不存在此功能。

有一个未解决的 GitHub 问题,目前正在考虑是否添加它 - 如果您想要的话,您可能希望添加您的声音。

https://github.com/nunit/nunit-console/issues/179

您目前能做的最好的事情是 'where cat is not' 所有当前类别,即

--where "cat!=CAT1 && cat != CAT2 && cat != CAT3"