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.
The text was updated successfully, but these errors were encountered:
I'm using SimpleCov and had some time making it work with test-queue.
SimpleCov does support merging results of multiple tests (processes or threads or another test frameworks).
how it work is
SimpleCov.command_name
)(
SimpleCov.result
does recording and return merged result)Simple.cov.result.format!
tocreate merged result in html (or in other format)
It relies heavily on
Kernel.at_exit
, which will be invoked onKerenl.exit
but not onKernel.exit!
.(how they do it)
The problem is test-queue is killing master with
exit!
, thusat_exit
is not executed at the very end.Currently I'm using hacky way of killing master by
kill
insideTestQueue::Runner#summarize
,just before
TestQueue::Runner#summarize
kill!
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 withkill!
is not really necessary IMHO.The text was updated successfully, but these errors were encountered: