56.5. Ordered Tests

Ordered Tests are used when you need to group tests and run them as a whole or if tests have dependencies on each other and need to be run in a particular order. It's a good practice to create atomic Unit Tests to be able to run them in isolation with repeatable results. I don't recommend using Ordered Tests just to deal with dependencies between Unit Tests. A good reason for creating Ordered Tests could be to create a performance session for more than one test.

In the Ordered Test Editor you will have a list of the available tests that you can add to the Ordered Test — the same test can be added more than once. You can also choose to continue after a failure. When the test is run, it will execute each of the selected tests in the specified order.

Get Professional Visual Studio® 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.