This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Reporter
mattt edited this page Jan 8, 2021
·
2 revisions
A class that reports the progress and outcomes of tests according to the Test Anything Protocol (TAP).
public final class Reporter
Creates a reporter with a given number of tests
that writes to standard output (STDOUT
).
public convenience init(version: Int = TAP.version, numberOfTests: Int)
- version: The TAP version (
TAP.version
by default). - numberOfTests: The number of tests expected to run. This should be a positive number or zero if the number of tests cannot be determined ahead of time.
Creates a reporter with a given number of tests that writes to the specified output target.
public required init<Target: TextOutputStream>(version: Int = TAP.version, numberOfTests: Int, output: inout Target)
- version: The TAP version (
TAP.version
by default). - numberOfTests: The number of tests expected to run. This should be a positive number or zero if the number of tests cannot be determined ahead of time.
- ouput: An output stream to receive the reported results.
The text output stream to which results are reported.
var output: TextOutputStream
Reports the output of a test.
public func report(_ outcome: Outcome)
- outcome: The test outcome.
Reports a "Bail out!" directive.
public func report(_ bailOut: BailOut)
- bailOut: The directive.
Generated at 2021-01-08T14:13:00+0000 using swift-doc 1.0.0-beta.5.