Swiftpack.co - akashivskyy/quick-swift-check as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by akashivskyy.
akashivskyy/quick-swift-check 3.4.0
Interoperability between Quick, Nimble and SwiftCheck.
⭐️ 12
🕓 31 weeks ago
iOS macOS tvOS
.package(url: "https://github.com/akashivskyy/quick-swift-check.git", from: "3.4.0")

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.

GitHub

link
Stars: 12
Last commit: 31 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

3.4.0
31 weeks ago

This release brings support for the latest version of Quick. Support for CocoaPods has been deprecated and will be removed in a future release. Also, this repository will only be using the main branch from now on.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics