Exception: Hegel::StopTest

Inherits:
Exception
  • Object
show all
Defined in:
lib/hegel/errors.rb,
sig/hegel.rbs

Overview

Raised for HEGEL_E_STOP_TEST (-1): libhegel has exhausted its choice budget for the running test case and the caller must abort the test body immediately.

Descends from Exception, not StandardError, so that a rescue => e (or a bare rescue) written in a user's test body cannot catch it. Only the code driving the test case is meant to catch this; letting a test body swallow it would turn "stop now" into "keep going".