Skip to content
forked from Quick/Quick

The Swift (and Objective-C) testing framework.

License

Notifications You must be signed in to change notification settings

jahilliard/Quick

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fdedd1e · Sep 23, 2015
Aug 31, 2015
Aug 31, 2015
Jul 6, 2015
Jul 19, 2015
Nov 21, 2014
Sep 21, 2015
Jul 19, 2015
Jul 19, 2015
Jun 8, 2015
Oct 20, 2014
Aug 31, 2015
Jul 27, 2015
Nov 1, 2014
Sep 3, 2015
Sep 8, 2015
Jun 15, 2015
Sep 18, 2015

Repository files navigation

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.

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!

def testing_pods
    # If you're using Xcode 7 / Swift 2
    pod 'Quick', '~> 0.6.0'
    pod 'Nimble', '2.0.0-rc.3'

    # If you're using Xcode 6 / Swift 1.2
    pod 'Quick', '~> 0.3.0'
    pod 'Nimble', '~> 1.0.0'
end

target 'MyTests' do
    testing_pods
end

target 'MyUITests' do
    testing_pods
end

License

Apache 2.0 license. See the LICENSE file for details.

About

The Swift (and Objective-C) testing framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 52.6%
  • Objective-C 45.6%
  • Ruby 1.8%