NUnit Test Run Order

Riain McAtamney picture Riain McAtamney · Jul 3, 2009 · Viewed 81k times · Source

By default nunit tests run alphabetically. Does anyone know of any way to set the execution order? Does an attribute exist for this?

Answer

Les picture Les · Aug 19, 2011

I just want to point out that while most of the responders assumed these were unit tests, the question did not specify that they were.

nUnit is a great tool that can be used for a variety of testing situations. I can see appropriate reasons for wanting to control test order.

In those situations I have had to resort to incorporating a run order into the test name. It would be great to be able to specify run order using an attribute.