OfferingRxTaps
public protocol OfferingRxTaps: OfferingTaps
The protocol, all Rx TestCase
entry points will be defined on.
-
assertionTest(_:source:timeout:scheduler:with:)
Extension methodThe default tester that takes a stream of
TestPoint
s. 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: TheDirective
that shall be applied. IfTestPoint
s fail, they won’t break the build.Parameter
Parameter location: TheSourceLocation
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.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. IfTestPoint
s 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 yourTestPoint
s.
-
genericTest(_:source:timeout:scheduler:with:)
Extension methodA tester for common observables that will complete.
Parameter
Parameter test: The name of the test.Parameter
Parameter directive: TheDirective
that shall be applied. IfTestPoint
s 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: AnObservable
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. IfTestPoint
s 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. -
test(_:file:line:column:function:timeout:scheduler:with:)
Extension methodA tester for common observables that will complete.
Parameter
Parameter test: The name of the test.Parameter
Parameter directive: TheDirective
that shall be applied. IfTestPoint
s 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: AnObservable
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. IfTestPoint
s 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.