Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

BailOut

mattt edited this page Jan 8, 2021 · 2 revisions

BailOut

An error that can be thrown from a test to stop the execution of further tests.

public struct BailOut: Error, LosslessStringConvertible

From the TAP specification:

Bail out!

As an emergency measure a test script can decide that further tests are useless (e.g. missing dependencies) and testing should stop immediately. In that case the test script prints the magic words Bail out! to standard output. Any message after these words must be displayed by the interpreter as the reason why testing must be stopped, as in Bail out! MySQL is not running.

Inheritance

Error, LosslessStringConvertible

Initializers

init(_:)

public init(_ description: String = "")

Properties

description

let description: String
Clone this wiki locally