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.
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'
endthis will also install KIF and Quick frameworks as dependencies ensuring compatible versions.
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()
}
}
}
}
}
}To run the sample spec in example project, clone the repo, and run pod install from the Example directory first.
KIF-Quick is available under the MIT license. See the LICENSE file for more info.