Quick /Quick

The Swift (and Objective-C) testing framework.

★ 9,819⑂ 894👁 216⑃ 775● 538▤ 52
SwiftApache-2.0Created 2014-06-05quick.github.io/Quick/
下载:v7.6.2v7.6.2 ↓7.6.22024-07-23
-1
日增长
9,819
stars
894
forks
216
watchers
775
prs
538
issues
52
releases

README

!





Quick is a behavior-driven development framework for Swift and Objective-C.
Inspired by RSpec, Specta, and Ginkgo.

!

swift
// Swift

import Quick
import Nimble

class TableOfContentsSpec: QuickSpec {
  override class func spec() {
    describe("the 'Documentation' directory") {
      it("has everything you need to get started") {
        let sections = Directory("Documentation").sections
        expect(sections).to(contain("Organized Tests with Quick Examples and Example Groups"))
        expect(sections).to(contain("Installing Quick"))
      }

      context("if it doesn't have what you're looking for") {
        it("needs to be updated") {
          let you = You(awesome: true)
          expect{you.submittedAnIssue}.toEventually(beTruthy())
        }
      }
    }
  }
}

 Nimble
Quick comes together with Nimble — a matcher framework for your tests. You can learn why XCTAssert() statements make your expectations unclear and how to fix that using Nimble assertions here.

 Swift Version

Certain versions of Quick and Nimble only support certain versions of Swift. Depending on which version of Swift your project uses, you should use specific versions of Quick and Nimble. Use the table below to determine which versions of Quick and Nimble are compatible with your project.

|Swift version        |Quick version   |Nimble version |
|:--------------------|:---------------|:--------------|
|Swift 5.2            |v3.0.0 or later |v9.0.0 or later|
|Swift 4.2 / Swift 5  |v1.3.2 or later |v7.3.2 or later|
|Swift 3 / Swift 4    |v1.0.0 or later |v5.0.0 or later|
|Swift 2.2 / Swift 2.3|v0.9.3          |v4.1.0         |

 Documentation

All documentation can be found in the Documentation folder, including detailed installation instructions for CocoaPods, Git submodules, Swift Package Manager, and more. For example, you can install Quick and Nimble using CocoaPods by adding the following to your Podfile:

rb
 Podfile

use_frameworks!

target "MyApp" do
   Normal libraries

  target 'MyApp_Tests' do
    inherit! :search_paths

    pod 'Quick'
    pod 'Nimble'
  end
end


You can also install Quick and Nimble using Swift Package Manager by adding the following to the dependencies section your Package.swift:

swift
dependencies: [
    .package(url: "https://github.com/Quick/Quick.git", from: "7.0.0"),
    .package(url: "https://github.com/Quick/Nimble.git", from: "12.0.0"),
],


 Projects using Quick

Over ten-thousand apps use either Quick and Nimble however, as they are not included in the app binary, neither appear in “Top Used Libraries” blog posts. Therefore, it would be greatly appreciated to remind contributors that their efforts are valued by compiling a list of organizations and projects that use them. 

Does your organization or project use Quick and Nimble? If yes, please add your project to the list.

 Who uses Quick

Similar to projects using Quick, it would be nice to hear why people use Quick and Nimble. Are there features you love? Are ther

Top issues

Discussions

Latest release

v7.6.2 v7.6.2 2024-07-23
What's Changed
 Add nullability annotations to the objective-c header files by @younata in https://github.com/Quick/Quick/pull/1291


Full Changelog: https://github.com/Quick/Quick/compare/v7.6.1...v7.6.2

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON