TapsHarness
public struct TapsHarness
A TapsHarness
handles all TapsOutput
emitted by Taps
.
This Harness is optimizes for Taps
, whereas TestHarness
supports all TAP compatible output.
sourcery: default-init
-
Creates a
TapsHarness
using aTapsOutput
handler.Parameter
Parameter report: Contains the logic of the harness.Declaration
Swift
public init(report: @escaping (TapsOutput) -> Void)
Parameters
report
Contains the logic of the harness.
-
A
TapsHarness
, that prints out allTapOutput
as TAP13.Declaration
Swift
public static var printHarness = tapsHarnessFrom(test: .printHarness())
-
Converts a
TestHarness
into aTapsHarness
.Declaration
Swift
public static func tapsHarnessFrom(test harness: TestHarness) -> TapsHarness
Parameters
harness
A
TestHarness
shall support theTapsOutput
.