zunit icon indicating copy to clipboard operation
zunit copied to clipboard

Add option to run tests asynchronously

Open molovo opened this issue 6 years ago • 1 comments

molovo avatar Aug 30 '17 13:08 molovo

We're already running tests sort of pseudo-asynchronously when time limits are enabled, by running the test function in an asynchronous subprocess and waiting for it to finish. It would be cool to extend that to launch multiple processes simultaneously (preferably with a defined thread limit) and then map the exit codes to tests names and output results on the main thread. I tried this a while ago and failed, so it might not be possible to do that since communication between processes is difficult, but i recently did something similar in PHP using socket pairs, so want to reinvestigate.

molovo avatar Sep 05 '17 22:09 molovo