/quick-swift-check

Interoperability between Quick, Nimble and SwiftCheck.

Primary LanguageSwiftMIT LicenseMIT

QuickSwiftCheck

Interoperability between Quick, Nimble and SwiftCheck.

Warning

This project is no longer maintained. Please fork this repository if you want to make changes or reach out to me if you're interested in taking it over.

Requirements

QuickSwiftCheck supports iOS 9.0+, macOS 10.10+, tvOS 9.0+ and Linux.

Usage

QuickSwiftCheck adds sc_ variants to it, fit, xit, to and toNot functions, so that the original functions remain not overloaded. This means you can use it to create a regular test example and to to create a regular expectation:

it("integer addition is commutative") {
    expect(2 + 3).to(equal(3 + 2))
}
sc_it("integer addition is commutative") {
    forAll { (a: Int, b: Int) in
        expect(a + b).sc_to(equal(b + a))
    }
}

Installation

In Xcode, select File → Add Packages and use the on-screen UI to search for the following Package URL:

https://github.com/akashivskyy/quick-swift-check

If you're using Swift Package Manager directly, add the following dependency to your Package.swift:

.package(url: "https://github.com/akashivskyy/quick-swift-check", from: "X.Y.Z"),

Roadmap

Version 3.x

These minor releases will keep QuickSwiftCheck up-to-date with latest versions of Quick, Nimble, SwiftCheck and Swift itself.

About

This project is made and maintained with ♡ by Adrian Kashivskyy.

License

The project is licensed under the MIT License.