无法在Visual Studio UPDATE1并行运行的MSTest [英] Unable to run mstest in parallel in Visual Studio Update1
问题描述
我开发一个MSTest的框架,基于单元测试项目。我的问题是我不能够并行运行测试,它依次运行。我已经添加了我的testsettings文件中的以下行
I am developing a MSTest framework based unit test project. The issue I have is I am not able to run the test in parallel and it is running sequentially. I have added the below line in my testsettings file.
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<RunConfiguration>
<MaxCpuCount>0</MaxCpuCount>
</RunConfiguration>
</RunSettings>
当我运行命令
and when I run the command
vstest.console.exe C:\Git\Test.dll /TestCaseFilter:"TestCategory=Flow1|TestCategory=Flow2|TestCategory=Flow3" /settings:C:\Git\UIRunSettings.runsettings
的
试验正在运行逐个和不平行。任何想法会更有益。
the test are running one by one and not in parallel. Any thoughts would be much helpful.
修改
我相信我面临着同样的问题,因为在链接说明。
EDIT I believe I am facing the same issue as stated in the link.
但不知道什么确切的分辨率笔者提出。
But dont know whats the exact resolution the author proposes.
在测试需要在解决方案级别上运行?任何指针将是有益得多
Is the test need to be run at the solution level? Any pointers would be much helpful
所有的测试已经分类和我发现只有在TestcaseFilter提到的测试越来越拾起......困惑是什么我下一步需要做什么?
All the tests has been categorised and I am finding only the test mentioned in the TestcaseFilter getting picked up......Confused was what I need to do next?
任何MS家伙,你可以请帮助。我相信更多的文件是必要的测试社区,而不是关于一个runsettings一个段落文档并行运行。
Any MS guys, can you please help. I believe more documentation is necessary for the testing community rather than a one paragraph documentation about runsettings parallel run.
任何机构可以请让我知道。再次迷茫由听力单词容器和组件...我需要创建一个单独的DLL为每个测试方法???
Can any body please let me know. Confused again by hearing the word containers and assemblies...DO I need to create a separate DLL for each of the test methods???
任何帮助深表感谢。
推荐答案
您的测试需要在单独的程序集(DLL)中,以并行地运行。
Your tests need to be in separate assemblies (DLLs) in order to be run in parallel.
这篇关于无法在Visual Studio UPDATE1并行运行的MSTest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!