Instance Property

continueAfterFailure

A Boolean value indicating whether a test method should continue running after a failure occurs.

Declaration

var continueAfterFailure: Bool { get set }

Discussion

The default is true. Set this property to false within a test method to end execution of that method as soon as a failure occurs. Other test methods in the suite may still execute after a test fails.