How to execute NUnit test cases from command prompt

前端 未结 6 1503
难免孤独
难免孤独 2021-02-07 00:30

How can I execute a test case from Command Console using NUnit? I had set of Selenium Tests written in C# based on NUnit framework. I need to execute the test cases simply by ru

6条回答
  •  佛祖请我去吃肉
    2021-02-07 01:16

    I would like to add a few words about the latest version of NUnit. The name of the console application has changed to nunit3-console.exe in NUnit 3. Information about all possible options can be found in the official documentation. For example, run all tests in the assembly (the results are saved into the TestResult.xml file by default).

    nunit3-console.exe path/to/test/assembly.dll
    

提交回复
热议问题