the real issue comes from tests that have accidental or implicit order dependencies, such that adding a test to the middle of a file might cause subsequent tests to fail because they expected something from the previous test.
or, refactoring a large file into two smaller files might result in a bunch of test failures, because the tests happened to depend on system state specific to the original larger file.
implicit ordering dependencies also tends to assume single-threaded test execution. a common strategy to speed tests up is to run them in parallel, and that can cause havoc if the tests aren't carefully scoped to act only on resources created by that test (such as, a test of user creation that in its teardown phase says "eh, just delete all users with a username starting with "test_")
What are the costs of the alternatives?
def test_ordered_integration()
# setup
with subtest("thing one"):
assert something
with subtest("thing two"):
assert something_else
# etcIf you need multiple service processes up and running, can you make them less stateful to get around some of your test limitations?