TestCase

public struct TestCase

A lazy group of TestPoints. Sometimes called Taps.

  • The title of the test case.

    Declaration

    Swift

    public var title: String?
  • The directive of the test case.

    Declaration

    Swift

    public var directive: Directive?
  • The source location of the test case.

    Declaration

    Swift

    public var sourceLocation: SourceLocation
  • The maximum execution duration.

    Declaration

    Swift

    public var timeoutInterval: RxTimeInterval?
  • The scheduler that shall be used for the test.

    Declaration

    Swift

    public var scheduler: SchedulerType?
  • A factory of all TestPoints.

    Declaration

    Swift

    public var observable: () -> Observable<TestPoint>
  • Creates a new TestCase.

    Parameter

    Parameter title: The title of the test case.

    Parameter

    Parameter directivr: The directive of the test case.

    Parameter

    Parameter location: The SourceLocation of the test case.

    Parameter

    Parameter interval: The maximum execution duration of the test case.

    Parameter

    Parameter scheduler: The scheduler that shall be used for the test.

    Parameter

    Parameter observable: A factory of all TestPoints.

    Declaration

    Swift

    public init(
        title: String?,
        directive: Directive? = nil,
        source location: SourceLocation,
        timeout interval: RxTimeInterval?,
        scheduler: SchedulerType?,
        with observable: @escaping () -> Observable<TestPoint>
      )

    Parameters

    title

    The title of the test case.

    directivr

    The directive of the test case.

    location

    The SourceLocation of the test case.

    interval

    The maximum execution duration of the test case.

    scheduler

    The scheduler that shall be used for the test.

    observable

    A factory of all TestPoints.