CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

QuickSwiftCheck 3.4.0

QuickSwiftCheck 3.4.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2022
SPMSupports SPM

Maintained by Adrian Kashivskyy.



 
Depends on:
Nimble~> 9.0
Quick~> 5.0
SwiftCheck~> 0.12
 

QuickSwiftCheck

Interoperability between Quick, Nimble and SwiftCheck.

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.