The version of testunit that I’m using doesn’t appear to
return a non-zero exit status when it finds failures or errors.
Does a newer version set this, or does anyone have a patch
to do this? (I haven’t browsed the source yet…)
Is there a way to set the exit status besides Kernel#exit()? The
difficulty is that the runners do not (and should not) explicitly exit.
One way around this is to do the following in the test you’re running:
The other facet of this is automatic running via #at_exit, and I don’t
think I can do anything there, either. The problem is that calling #exit
from an #at_exit block doesn’t set the exit status (I guess because #at_exit blocks happen after the official exit of the program).
The version of testunit that I’m using doesn’t appear to
return a non-zero exit status when it finds failures or errors.
Does a newer version set this, or does anyone have a patch
to do this? (I haven’t browsed the source yet…)
Is there a way to set the exit status besides Kernel#exit()? The
difficulty is that the runners do not (and should not) explicitly exit.
One way around this is to do the following in the test you’re running:
The other facet of this is automatic running via #at_exit, and I don’t
think I can do anything there, either. The problem is that calling #exit
from an #at_exit block doesn’t set the exit status (I guess because #at_exit blocks happen after the official exit of the program).