0
votes

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?

1

1 Answers

1
votes

To run the SpecFlow tests with the SpecFlow+Runner (aka SpecRun), you need to do this:

  1. Open your project's build steps.
  2. Click on Add build step.
  3. Choose "Command Line" from the dialogue.
  4. 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.
  5. Click on Save.

Taken from https://specflow.org/plus/documentation/SpecFlowPlus-and-TeamCity/