You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep different name on each processes (in SimpleCov.command_name)
Each processes records it's result to a json file on exit, with it's stored name as key
(SimpleCov.result does recording and return merged result)
Then at the end (or could be at each end), call Simple.cov.result.format! to
create merged result in html (or in other format)
It relies heavily on Kernel.at_exit, which will be invoked on Kerenl.exit but not on Kernel.exit!.
(how they do it)
The problem is test-queue is killing master with exit!, thus at_exit is not executed at the very end.
Currently I'm using hacky way of killing master by kill inside TestQueue::Runner#summarize,
just before TestQueue::Runner#summarizekill! it.
(An example of my configuration)
If master process exits with exit, it is so much easier to play nicely with simplecov.
While killing forked processes by kill! is a safe idea, killing master with kill! is not really necessary IMHO.
Activity
ryanong commentedon Jun 15, 2016
the way I have fixed this was in the
def cleanup_workerrunSimpleCov.at_exit.callaroben commentedon Mar 9, 2017
As I mentioned in #36 it'd be great to have some documentation for how to use SimpleCov with test-queue.