nunit3 how to include test category in command line

So if anyone searching how to do this in NUNIT3:

 --where "cat == SmokeTests" --noresult

helped by @omer727 link!


Link provided by @omer727 is broken, here is another one: https://github.com/nunit/docs/wiki/Console-Command-Line

The anwser still works:

--where "cat == SmokeTests"

The console command-line allows you to specify a filter, which will select which tests are executed. This is done using the --where option, followed by an expression in NUnit's Test Selection Language (TSL), a simple domain-specific language designed for this purpose.

Example:

nunit3-console mytest.dll --where "cat == Urgent || Priority == High"

For more details visit this link: https://github.com/nunit/docs/wiki/Test-Selection-Language

EDIT:

The detailed example can be found in the related SO question here.

Tags:

Nunit