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
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: TheDirectivethat shall be applied. IfTestPoints fail, they won’t break the build.Parameter
Parameter location: TheSourceLocationof 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
testThe name of the test.
directiveThe
Directivethat shall be applied. IfTestPoints fail, they won’t break the build.locationThe
SourceLocationof the calle of the test.timeoutThe interval defining the maximum duration the test may need.
schedulerThe scheduler for the test. Visit RxSwift for more info.
observableAn
Observableof yourTestPoints.
-
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: TheDirectivethat shall be applied. IfTestPoints 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: AnObservablethat 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
testThe name of the test.
directiveThe
Directivethat shall be applied. IfTestPoints fail, they won’t break the build.timeoutThe interval defining the maximum duration the test may need.
schedulerThe scheduler for the test. Visit RxSwift for more info.
observableAn
Observablethat 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: TheDirectivethat shall be applied. IfTestPoints 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: AnObservablethat 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
testThe name of the test.
directiveThe
Directivethat shall be applied. IfTestPoints fail, they won’t break the build.timeoutThe interval defining the maximum duration the test may need.
schedulerThe scheduler for the test. Visit RxSwift for more info.
observableAn
Observablethat runs your tests.
View on GitHub
Install in Dash
OfferingRxTaps Protocol Reference