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 a TapsOutput 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 all TapOutput as TAP13.

    Declaration

    Swift

    public static var printHarness = tapsHarnessFrom(test: .printHarness())
  • Converts a TestHarness into a TapsHarness.

    Parameter

    Parameter harness: A TestHarness shall support the TapsOutput.

    Declaration

    Swift

    public static func tapsHarnessFrom(test harness: TestHarness) -> TapsHarness

    Parameters

    harness

    A TestHarness shall support the TapsOutput.