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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access