How to run feature files in parallel when using specflow/specrun?

痴心易碎 提交于 2020-01-04 19:10:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!