简体   繁体   English

使用NANT并行运行NUnit测试

[英]Running NUnit Tests in parallel using NANT

We have different categories of tests under various assemblies. 我们在各种组件下有不同类别的测试。 What is the best possible way to run them in parallel? 并行运行它们的最佳方法是什么? I am aware of a task in ant, is there any such task in NANT? 我知道蚂蚁的任务,在NANT有任何这样的任务吗?

I think, from memory, you need NUnit version 2.5.x or above to run parallel unit tests, which I also remember being a paid-for product. 我认为,从内存来看,你需要NUnit 2.5.x或更高版本来运行并行单元测试,我也记得它是付费产品。

However, if you use MbUnit, the Gallio test-runner that it comes with runs the tests in parallel and is free. 但是,如果您使用MbUnit,它所附带的Gallio测试运行器将并行运行测试并且是免费的。

Either way, you get NAnt to call the unit test runner (either NCover/NUnit or Gallio) and it runs them from there, and not direct from NAnt as this is just a scripting language, but one with significant power to call-out to other processes. 无论哪种方式,你让NAnt调用单元测试运行器(NCover / NUnit或Gallio)并从那里运行它们,而不是直接来自NAnt,因为这只是一种脚本语言,但是具有强大的调用权力的语言其他过程。

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

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