I am trying to run SpecFlow tests as part of a TFS Build. Is there a way i can set it up without the SpecFlow+ runner. What are the advantages of using SpecFlow+ runner?
Anyone has experience setting these up?
SpecFlow+ runner
Smarter integration test runner for SpecFlow
SpecFlow+ Runner is a dedicated test execution engine providing better reporting, faster (parallel) test execution and better VS/TFS integration
Highly recommend to use specflow+ runner to run specflow tests via TFS.
To configure your build process in TFS 2017 to execute tests using SpecFlow+ Runner:
Configure the build step as follows:
Enter the path to your Test Assembly
If you are using both MSTest and SpecFlow+ Runner, enter the path to NuGet package folder in the Path to Custom Test Adapters field. If you do not enter the path here, only your MSTest tests will be executed as TFS cannot find the SpecFlow+Runner test adapter.
Enter the name of your .srprofile file in the Run Settings File
field if the name is not TFS.srprofile
or default.srprofile
(see
above).
Save your changes.
More details please refer this tutorial: SpecFlow+ And Build Servers