OfferingRxTaps

public protocol OfferingRxTaps: OfferingTaps

The protocol, all Rx TestCase entry points will be defined on.

  • The default tester that takes a stream of TestPoints. This is not meant to be called from inside your tests. Use it only for creating your own tester functions.

    Parameter

    Parameter test: The name of the test.

    Parameter

    Parameter directive: The Directive that shall be applied. If TestPoints fail, they won’t break the build.

    Parameter

    Parameter location: The SourceLocation of the calle of the test.

    Parameter

    Parameter timeout: The interval defining the maximum duration the test may need.

    Parameter

    Parameter scheduler: The scheduler for the test. Visit RxSwift for more info.

    Parameter

    Parameter observable: An Observable of your TestPoints.

    Declaration

    Swift

    public func assertionTest(
        _ title: String?,
        source location: SourceLocation,
        timeout interval: RxTimeInterval?,
        scheduler: SchedulerType?,
        with observable: @escaping () -> Observable<TestPoint>
      )

    Parameters

    test

    The name of the test.

    directive

    The Directive that shall be applied. If TestPoints fail, they won’t break the build.

    location

    The SourceLocation of the calle of the test.

    timeout

    The interval defining the maximum duration the test may need.

    scheduler

    The scheduler for the test. Visit RxSwift for more info.

    observable

    An Observable of your TestPoints.

  • A tester for common observables that will complete.

    Parameter

    Parameter test: The name of the test.

    Parameter

    Parameter directive: The Directive that shall be applied. If TestPoints fail, they won’t break the build.

    Parameter

    Parameter timeout: The interval defining the maximum duration the test may need.

    Parameter

    Parameter scheduler: The scheduler for the test. Visit RxSwift for more info.

    Parameter

    Parameter observable: An Observable that runs your tests.

    Declaration

    Swift

    public func genericTest<T>(
        _ title: String? = nil,
        source location: SourceLocation,
        timeout interval: RxTimeInterval? = nil,
        scheduler: SchedulerType? = nil,
        with observable: @escaping (Test) -> Observable<T>
      )

    Parameters

    test

    The name of the test.

    directive

    The Directive that shall be applied. If TestPoints fail, they won’t break the build.

    timeout

    The interval defining the maximum duration the test may need.

    scheduler

    The scheduler for the test. Visit RxSwift for more info.

    observable

    An Observable that runs your tests.

  • A tester for common observables that will complete.

    Parameter

    Parameter test: The name of the test.

    Parameter

    Parameter directive: The Directive that shall be applied. If TestPoints fail, they won’t break the build.

    Parameter

    Parameter timeout: The interval defining the maximum duration the test may need.

    Parameter

    Parameter scheduler: The scheduler for the test. Visit RxSwift for more info.

    Parameter

    Parameter observable: An Observable that runs your tests.

    Declaration

    Swift

    public func test<T>(
        _ title: String? = nil,
        file: String = #file,
        line: Int = #line,
        column: Int = #column,
        function: String = #function,
        timeout interval: RxTimeInterval? = nil,
        scheduler: SchedulerType? = nil,
        with observable: @escaping (Test) -> Observable<T>
      )

    Parameters

    test

    The name of the test.

    directive

    The Directive that shall be applied. If TestPoints fail, they won’t break the build.

    timeout

    The interval defining the maximum duration the test may need.

    scheduler

    The scheduler for the test. Visit RxSwift for more info.

    observable

    An Observable that runs your tests.