OfferingTaps
public protocol OfferingTaps
The protocol, all TestCase entry points will be defined on.
-
test(_:plan:file:line:column:function:timeout:scheduler:with:)Extension methodA tester for potentially throwing tests.
Parameter
Parameter test: The name of the test.Parameter
Parameter plan: The amount of expectedTestPoints. Will automatically callTestPoint.endif all planned tests have been run.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 test: A function that runs your tests.Declaration
Swift
public func test( _ title: String? = nil, plan: Int? = nil, file: String = #file, line: Int = #line, column: Int = #column, function: String = #function, timeout interval: RxTimeInterval? = nil, scheduler: SchedulerType? = nil, with tests: @escaping (Test) throws -> Void )Parameters
testThe name of the test.
planThe amount of expected
TestPoints. Will automatically callTestPoint.endif all planned tests have been run.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.
testA function that runs your tests.
-
todo(_:)Extension methodAll tests defined inside the use of directive will be marked as todo. If they fail, the test is marked as not ok, but as passing.
Declaration
Swift
public func todo(_ message: String) -> OfferingTaps -
todoExtension methodAll tests defined inside the use of directive will be marked as todo. If they fail, the test is marked as not ok, but as passing.
Declaration
Swift
public var todo: OfferingTaps
View on GitHub
Install in Dash
OfferingTaps Protocol Reference