Search code examples
nunitunmanagednunit-console

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.


Solution

  • 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