Nunit .Net Core Parallel Tests

自古美人都是妖i 提交于 2019-12-13 18:32:41

问题


This was mentioned by Charlie Poole :

If you are running .NET Core tests, you are using the NUnit portable framework build, which does not support parallel execution. The attribute is still accepted so that you can switch to different platform builds without changing the code

Does any one know if this is still the case ?


回答1:


Yes, this is still the case as of NUnit 3.8.1. Even though the Portable version of the framework has been replaced by a .NET Standard version, parallel test execution has not been enabled yet.

Parallel execution is enabled in NUnit by the PARALLEL conditional compilation which isn't enabled in the .NET Standard projects yet.

Update NUnit 3.10.1 has been released which re-enables most of the parallel features when you use .NET Standard/Core 2.0+.



来源:https://stackoverflow.com/questions/46526999/nunit-net-core-parallel-tests

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