开发者

How can i cutdown the nunit exceution time?

开发者 https://www.devze.com 2023-03-27 07:49 出处:网络
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 t

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

精彩评论

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

关注公众号