How can I configure the build process in TeamCity to execute SpecFlow tests? I am using visual studio 2017 with the Specrun.Specflow nuget package installed. Can it be done with Nunit or SpecRun.exe?
0
votes
1 Answers
1
votes
To run the SpecFlow tests with the SpecFlow+Runner (aka SpecRun), you need to do this:
- Open your project's build steps.
- Click on Add build step.
- Choose "Command Line" from the dialogue.
- Configure the build step as follows:
Run: Executable with parameters
Command executable: Enter the path to SpecRun.exe here
Command parameters: Enter the command line parameters for SpecRun.exe here. Use the BuildServerRun option and include /buildserver:teamcity.
Information on executing command lines in TeamCity is available here. More details on the SpecFlow+ Runner's command line options can be found here. - Click on Save.
Taken from https://specflow.org/plus/documentation/SpecFlowPlus-and-TeamCity/