I have a number of test cases, well say TestA
, TestB
, TestC
, and I want them to be run in a specific order such as TestB
--> TestC
--> TestA
. How can I make sure that the tests are actually run in this order?
Note that those test cases are classes which inherit from unittest.TestCase
not just methods inside of a TestCase. That is to say, I am not wondering about the execution order of tests within a TestCase, I'm wondering about how to change the order in which the TestCase's themselves are run.
For those of you who are going to say that I'm doing something terrible and that's not how you write unit tests, I'm doing integration testing and I am aware this is a bad practice for unit tests.