Swiftpack.co - Package - Quick/Quick

Build Status CocoaPods Carthage Compatible Accio supported 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 4.2 |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, 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.

Github

link
Stars: 8356
Help us keep the lights on

Dependencies

Used By

Total:

Releases

v2.1.0 - Apr 18, 2019

New Features

  • Support QuickSpec.current for SwiftPM builds as well, on both macOS and Linux #848, #850
  • Package.swift is updated for Swift 5, which adds the platforms setting (SE-0236) #843 (Thanks @devxoul)

Changes

  • Update CocoaPods to 1.7.0.beta.3 #840, #852
  • Update .hound.yml #844
  • Update Nimble to 8.0.1 #846
  • Xcode 10.2: Update to recommended settings #847
  • Introduce FileString typealias which has been used in Nimble #854
  • Internal refactoring #855, #858, #859, #860, #861, #862, #863, #864, #865
  • [CI] Propagate xcodebuild errors correctly #857

v2.0.0 - Mar 3, 2019

Quick v2 has been released! 🎉 The new major version requires Swift 4.2 / Xcode 10.1 at least, which also supports Swift 5.0 / Xcode 10.2 as well.

BREAKING CHANGES

  • Bump requirements #786 #789 (Thanks @ikesyo)
    • Bump MACOSX_DEPLOYMENT_TARGET to 10.10
    • Bump Swift version to 4.1
  • Behavior.name is changed from open to public #821 (Thanks @spekke)
  • Bump Swift requirement to 4.2 #831 (Thanks @ikesyo)

Changes

  • Add left alignment spaces for copyright in template files #790 (Thanks @quesera2)
  • [Xcode] Enable New Build System #793 (Thanks @ikesyo)
  • Update Nimble #798 #808 #814 #815 #837 (Thanks @ikesyo)
  • [Danger] Remove CONTRIBUTING.md from SDM_DANGER_IMMUTABLE_FILES #805 (Thanks @ikesyo)
  • [CI] Add Swift 4.2/Xcode 10 to the build matrix #824 (Thanks @ikesyo)
  • Issue-689: Improve QuickBot lint warning #827 (Thanks @atfelix)
  • Use #if canImport implemented in Swift 4.1 (SE-0075) #832 (Thanks @ikesyo)
  • [CI] Add Xcode 10.2 image to the build matrix #838 (Thanks @ikesyo)
  • Update CocoaPods to 1.7.0.beta.1 #839 (Thanks @ikesyo)

Bugfixes

  • Fix NSInternalInconsistencyException when running a test from test navigator #716 (Thanks @haitaoli)
  • Xcode 10: Adjust Build Phases order #817 (Thanks @ikesyo)

Documentation Changes

  • Add @escaping to Swift example #787 (Thanks @bellebethcooper)
  • Add a "Reviewed by Hound" badge #810 (Thanks @salbertson)
  • Fix typo #812 (Thanks @revolter)
  • Simple typo correction in a KR doc #816 (Thanks @Willicious-k)
  • Update InstallingQuick.md #830 (Thanks @audrl1010)

v1.3.4 - Jan 29, 2019

Changes

  • [SwiftPM] Update swiftLanguageVersions to 4 for Package@swift-4.swift #834 (Thanks @ikesyo)

v1.3.3 - Jan 28, 2019

Bugfixes

  • Fix Xcode 10 warning #821, #833 (Thanks @spekke and @ikesyo)

v1.3.2 - Sep 21, 2018

Bugfixes

  • Xcode 10: Adjust Build Phases order #817, #819 (Thanks @ikesyo)