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 expectedTestPoint
s. Will automatically callTestPoint.end
if all planned tests have been run.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 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
test
The name of the test.
plan
The amount of expected
TestPoint
s. Will automatically callTestPoint.end
if all planned tests have been run.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.
test
A 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
-
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 var todo: OfferingTaps