Interoperability between Quick, Nimble and SwiftCheck.
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.
QuickSwiftCheck supports iOS 9.0+, macOS 10.10+, tvOS 9.0+ and Linux.
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))
}
}
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"),
These minor releases will keep QuickSwiftCheck up-to-date with latest versions of Quick, Nimble, SwiftCheck and Swift itself.
This project is made and maintained with ♡ by Adrian Kashivskyy.
The project is licensed under the MIT License.