开发者

Nunit Tests order of Execution

开发者 https://www.devze.com 2023-01-21 04:21 出处:网络
This might seem a sily question to those who are well versed in autonmation but I am struggling with many things. Here\'s开发者_开发知识库 one:

This might seem a sily question to those who are well versed in autonmation but I am struggling with many things. Here's开发者_开发知识库 one:

I am finding that the tests I created with Selenium RC in Visual Studio 2008 are getting run from NUnit in the alphabetical order of their names?

What am I missing? Is there a way to organize the order in which the tests in Nunit are run?

Thanks!


Technically, your unit tests should all be able to run independently of each other so ordering should not matter.

I think it might be time to re-think how you are doing your tests.

If you just want them run in a specific order because that's how you "prefer" them to be run, then I would argue that you are throwing away precious time doing something that really isn't that important.

If you need specific things done before the tests are executed, check out the setup and teardown methods.

0

精彩评论

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