@KotlinIsland that sounds amazing, thank you! (And it will be useful for some other projects too.) I’ll check it out in the next EAP.
Django uses its own DiscoverRunner, which is essential for sequencing tests and additional setup/teardown. But the DiscoverRunner delegates running the tests in run_suite() to a unittest.TextTestRunner instance it creates (with certain cli options). Will that satisfy the requirement to “run the tests with unittest.TextTestRunner”?
Separately, on the pytest side, there was some previous discussion and prototyping in this thread from 2024: Anyone use pytest for running Django's test suite?. (It’s a bit more complicated than I thought. Probably best to resurrect that thread or start a new one for any further pytest discussion.)