My advice is to not try to get it to one-shot it. Actually I have a pet theory that very stern instruction primes a junior developer role (because that's who gets micromanaged). Just invoke a second process, it's better for the tests not to have the same context anyway
Avoiding One-Shot Solutions: Multi-Process Testing Approach
By
–