parallel execution of tests in same class in mstest

ε祈祈猫儿з 提交于 2020-01-17 06:16:09

问题


I am trying to execute test cases in same class parallely using MStest framework. I have used .runsettings(maxcpucount) file and testsettings(paralleltestcount) file but these are only running tests of different projects in parallel.I am unable to achieve this when I have tests in same class.


回答1:


You cannot run in-class tests in parallel using MSTest. Microsoft has this in their backlog tasks (microsoft github).

In the mean time you can use NUnit to achieve this. Try this blog: http://approache.com/blog/from-mstest-to-nunit/

Parallelization using NUnit with Selenium: Try this videos: Part 1, Part 2



来源:https://stackoverflow.com/questions/35468910/parallel-execution-of-tests-in-same-class-in-mstest

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