Hi everyone,
We are using multiprocessing and threading libraries to do work execution in parallel. We want to add testing coverage including scenarios such as deadlocks, hang or stuck. It requires us to have a well-controlled underlying library resources to control the execution flow or inject any fault. For example, Fake process or thread with known issues. This kind of testing will help us testing system’s resilience against such cases.
I want to know if there is any existing python framework or system pattern to refer which can help us generate such scenarios. Any reference will be of help. For example, Mock/Mimic of the multiprocessing and threading to have more control over Processes and Threads. Any Fault Injection testing reference to do chaos testing with the system.