问题
I am implementing a project for the proof of concept and here is what i am using:
VS 2013,MSTest/Test Explorer, Specflow and specrun
I have created 3 specflow feature files, each having it's own sets of different scenarios. When I run these tests from test explorer i can successfully see all the scenarios in each feature file running one by one and that's absolutely fine.
Next, I want to run all the 3 feature files in parallel. Is there a way to do this? All my feature files are completely independent from each other and have their own different set of scenarios.
I have seen few links that only tells how to run scenarios in parallel by using Default.srprofile but can't find anything on running feature files in parallel.
回答1:
The specrun doucumentation says this is possible and links to this video to show how it is done.
I've not used specrun, so can't comment on its effectiveness, but I do know that some work has been done in this area in the v2 branch which will make specflow thread safe and allow parallel execution with any test runner that supports running tests in parallel (NUnit3, xUnit2 etc)
来源:https://stackoverflow.com/questions/33067939/how-to-run-feature-files-in-parallel-when-using-specflow-specrun