简体   繁体   English

通过NameSpace并行运行ReSharper测试

[英]Running ReSharper Tests in Parallel by NameSpace

I am wondering if I can run my NUnit tests in parallel, I'm using the R# test runner and there is the option of running assemblies in parallel. 我想知道我是否可以并行运行我的NUnit测试,我正在使用R#测试运行器,并且可以选择并行运行程序集。 在此输入图像描述

I have a Test Project with all of the tests and they are all 'grouped' and ordered by namespace . 我有一个包含所有测试的测试项目,它们都是“分组”并按namespace排序。 Is there any ability to be able to run tests in namespaces in parallel? 是否有能力并行运行名称空间中的测试? Example of what I mean by 'grouping' 我所说的“分组”的例子 在此输入图像描述

I would go with the NUnit console and that gives you some commandline options to run the tests by specifying TestFixtures 我会使用NUnit控制台,并通过指定TestFixtures为您提供一些命令行选项来运行测试

nunit /fixture:NUnit.Tests.AssertionTests nunit.tests.dll

to load only the NUnit.Tests.AssertionTests in the nunit.tests.dll assembly. 仅加载nunit.tests.dll程序集中的NUnit.Tests.AssertionTests。 The name specified after the /fixture option may be that of a TestFixture class , or a namespace / fixture选项后指定的名称可以是TestFixture classnamespace

I have never personally tested parallel execution with commandline but theoretically it can be done 我从来没有用命令行亲自测试并行执行,但从理论上讲,它可以完成

See this 看到这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM