Skip to content

lokae0/KIF-Quick

 
 

Repository files navigation

KIF-Quick

Write KIF tests Quick style in Swift!

KIF-Quick is a bridge between the Keep It Functional and Quick frameworks. It allows you to perform KIF actions using Quick syntax.

Swift Travis Version Platform License

Installation

KIF-Quick is available through CocoaPods. To install it, simply add pod 'KIF-Quick' to your test target in Podfile:

target 'Your App' do
  ...
end

target 'Acceptance Tests' do
  pod 'KIF-Quick'
end

this will also install KIF and Quick frameworks as dependencies ensuring compatible versions.

Usage

import KIF_Quick in your specs and start writing KIF tests using Quick describe/context and it blocks. See the SampleSpec.m example:

import Quick
import KIF_Quick

class MainViewSpec: KIFSpec {
    override func spec() {
        describe("example app") {
            context("main view") {
                context("tap") {
                    it("should change to Thank you") {
                        viewTester().usingLabel("Tap Me").tap()
                        viewTester().usingLabel("Thank you!").waitForView()
                    }
                }
            }
        }
    }
}

Example

To run the sample spec in example project, clone the repo, and run pod install from the Example directory first.

Author

Paul Zabelin

License

KIF-Quick is available under the MIT license. See the LICENSE file for more info.

About

Keep It Functional BDD style in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 84.3%
  • Swift 11.5%
  • Shell 3.4%
  • Ruby 0.8%