MSTest F# - 并行运行测试
按照此处提到的指南:将 MSTest 与 F# 结合使用 我成功地运行了单元测试。
我想知道是否有人尝试过并成功地并行运行测试?
谢谢!
编辑:
所以我最终删除了所有解决方案项目,删除了 C# 测试项目清理的解决方案。 使用 Local.testsettings 阅读了一个新的 C# 测试项目(我有 Debug.testsettings 和 Release.testsettings - 手动添加 Local.testsettings 没有解决问题)。已修复 - 并行运行 5 个测试。
Following the guide mentionned here: Using MSTest with F# I managed to successfully run my unit tests.
I was wondering if anyone had tried and successfully managed to run tests in parallel?
How to run unit tests (MSTest) in parallel?
Thanks!
edit:
So I ended up deleting all solution items, removing the C# test project cleaned solution.
Readded a new C# test project with Local.testsettings (I had Debug.testsettings and Release.testsettings - adding Local.testsettings manually hadn't fixed the problem). Fixed - running 5 tests in parallel.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,Using MSTest with F# 和 如何并行运行单元测试 (MSTest)? 最多允许运行 5 个F# 编写的本地单元测试与多核机器上的 VS2010/mstest 并行。下面的屏幕截图显示
TestMethod2()
和TestMethod3()
并行运行,而TestMethod4()
已经通过,并且TestMethod1()
仍待处理。环境为VS2010 Premium/no SP1,在Win2008R2下的16核机器上运行;
Local.testsettings
中
元素的parallelTestCount
属性设置为2
:非缩放版本屏幕截图可以在此处
祝“本机”VS/mstest F# 单元测试好运! :)
Yes, the composition of Using MSTest with F# and How to run unit tests (MSTest) in parallel? allows to run up to 5 F#-written local unit tests in parallel with VS2010/mstest on a multi-core box. The screenshot below shows
TestMethod2()
andTestMethod3()
are running in parallel, whileTestMethod4()
has already being passed, andTestMethod1()
is still pending.Environment is VS2010 Premium/no SP1 running on 16-core box under Win2008R2;
parallelTestCount
attribute of<Execution>
element inLocal.testsettings
is set to2
:Non-scaled version of the screenshot image can be found here
Good luck with "native" VS/mstest F# unit testing! :)