New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public interface for aborting due to event #707
Comments
I am thinking the interface should be $ctx->send_abort_event(...) that is identical to send_event(), but bumps the _aborted ref. I do not think _aborted itself should be publicly exposed. |
Would it be possible to use the result of the |
that would be a good idea. +1 |
exodist
added a commit
that referenced
this issue
Aug 18, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ctx->plan(0, 'skip_all') and $ctx->bail() both send events that basically abort testing. This would normally be a problem because the context would notice it is not released and complain. To get around this both methods do
${$ctx->{_aborted}}++
to tell the context to chill out.We need a public interface for this for people who write their own abort-now style events.
@haarg needs this.
The text was updated successfully, but these errors were encountered: