开发者

How can i cutdown the nunit exceution time?

i have to run more than 400 integration test cases to run every day i will take more than 5 hrs to run. how can i cu开发者_如何学编程t down the nunit execution time into half? Is there any way to do this?


May be running separate sets of nunit tests across machines can help you.


Sounds like you need to refactor your code and tests and introduce mocks. 400 test cases testing classes with mocked dependencies probably shouldn't take 5 hours; maybe 5 minutes. That's a broad assumption on my part though.

In my experience, when tests takes a long time to run, they're more integration tests than unit tests. Perhaps this is your intention. If it is not, have a think about how you can better isolate each test case.

If you're only responsible for QA and can't change the code, I'm all out of ideas on actually speeding up NUnit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜