Running Specflow Test From Command Line Using Nunit
How to run specflow test cases from command line
We can use nunit console runner for running specflow test cases from command line. Running specflow test cases through nunit console runner will help to create test results in xml file, which can then be used for creating html reports.
Procedure for command line test execution are
- Define Nunit as the test runner. This is done in config file
1 2 3 |
|
- Include Nunit.Console.Runner package to solution via nuget package manager
- Run specflow test cases using below command. We can create a bat file with below command and execute them as required.
1 2 3 4 |
|