2

I am trying to run nunit3-console tests with where filter that returns true when category is not set. How do I set 'no category specified'? I have tried various forms with no luck.

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

Thanks

Jan Hyka
  • 47
  • 5

1 Answers1

2

No, this functionality doesn't currently exist.

There's an open GitHub issue, currently considering whether to add it - you may wish to add your voice, if this is something you'd want.

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

The best you can currently do is 'where cat is not' for all current categories, i.e.

--where "cat!=CAT1 && cat != CAT2 && cat != CAT3"
Chris
  • 5,882
  • 2
  • 32
  • 57