Skip to content
/ Quick Public
forked from Quick/Quick

The Swift (and Objective-C) testing framework.

License

Notifications You must be signed in to change notification settings

pulak335/Quick

This branch is 311 commits behind Quick/Quick:master.

Folders and files

NameName
Last commit message
Last commit date
Nov 22, 2016
Apr 27, 2018
Jul 7, 2018
May 13, 2018
Jul 25, 2018
May 24, 2018
Jul 25, 2018
Jun 12, 2018
Sep 22, 2016
Nov 23, 2017
Oct 20, 2014
Nov 16, 2016
Apr 23, 2018
Aug 25, 2017
Jul 25, 2018
Aug 19, 2016
Aug 19, 2016
Jul 2, 2018
Apr 12, 2018
Apr 12, 2018
Nov 1, 2014
Jul 7, 2018
Apr 23, 2018
Jul 25, 2018
Jul 31, 2018
Jul 25, 2018

Repository files navigation

Build Status CocoaPods Carthage Compatible Platforms Reviewed by Hound

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

// Swift

import Quick
import Nimble

class TableOfContentsSpec: QuickSpec {
  override 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 3 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, Carthage, Git submodules, and more. For example, you can install Quick and Nimble using CocoaPods by adding the following to your Podfile:

# Podfile

use_frameworks!

target "MyApp" do
  # Normal libraries

  abstract_target 'Tests' do
    inherit! :search_paths
    target "MyAppTests"
    target "MyAppUITests"

    pod 'Quick'
    pod 'Nimble'
  end
end

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 there features that are just okay? Are there some features we have that no one uses?

Have something positive to say about Quick (or Nimble)? If yes, provide a testimonial here.

License

Apache 2.0 license. See the LICENSE file for details.

About

The Swift (and Objective-C) testing framework.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 61.5%
  • Objective-C 29.2%
  • Ruby 5.2%
  • Shell 4.1%