NUnit 3 has "--where
" parameter in console that allows us to select different tests to run. It can include different namespaces or test categories.
I want (but don't know how) to include some namespaces to run tests. I have specific examples and I ask you for help.
Let's assume we have the next namespaces with tests:
- Project.MainSuite (includes 1 tests)
- Project.MainSuite.Category1 (has 2 tests)
- Project.MainSuite.Category1.TestSuite1 (has 3 tests)
How to run the next tests using --where parameter:
- Tests only from
Project.MainSuite.Category1
(2 tests should be run) - Tests from
Project.MainSuite.Category1
andProject.MainSuite.Category1.TestSuite1
together (5 tests should be run) - All test from
Project.MainSuite
including sub-namespaces (6 tests should be run)
Thanks in advance for your help.