How to execute NUnit test cases from command prompt

前端 未结 6 1495
难免孤独
难免孤独 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:12

    I've just find another nice solution:

    Adding the following command to the "Build Events" / "Post-Build Events", will run the tests in Nunit-Gui automatically after the project has been built.

    I hope this can be useful:

    "C:\Program Files (x86)\NUnit 2.6.3\bin\nunit-x86.exe" $(TargetPath) /run
    

提交回复
热议问题