Instance Property


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


var continueAfterFailure: Bool { get set }


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.