Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can nunit-console list all test names in a test fixture?

I'd like to report them before they're run, and have the option to run individual tests through shell scripts without managing categories. We have some unmanaged code which can leave the process in a bad state, and sometimes are happy to run each test individually per nunit-console run.

like image 418
Sebastian Good Avatar asked Oct 24 '22 11:10

Sebastian Good


1 Answers

There is now the --explore command-line option that can be used to list all test cases without running tests. More specifically

nunit3-console.exe MyProject.dll --explore

For more info: https://github.com/nunit/docs/wiki/Console-Command-Line#description

like image 188
JeffC Avatar answered Nov 12 '22 23:11

JeffC