Skip to content

pfandrade/Expectations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expectations

A short & sweet expectation implementation written in Swift. See the blog post for the rationale behind it.

This is similar to using an XCTestExpectation.

Usage

Simply create an expectation, pass it to an asynchronous task and wait on it.

let expectation = Expectation()
someAsynchronousMethodCall() {
    expectation.fulfill()
}

expectation.wait(for: 5)

Installation

It's just a single file, copy it to your project and you're done.

About

A short & sweet generic expectation implementation in Swift

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages