About a month ago I mentioned a nice utility library for Swift inspired by Underscore.js and Asterism.
Here’s an extensive testing framework for Swift (and Objective-C) with a syntax inspired by Rspec, Specta and Gingko called Quick from Brian Gesiak.
This example from the readme shows the syntax of Quick in action:
import Nimble
class TableOfContentsSpec: QuickSpec {
override func spec() {
describe("the table of contents below") {
it("has everything you need to get started") {
let sections = TableOfContents().sections
expect(sections).to.contain("Quick Core")
expect(sections).to.contain("Quick Expectations")
expect(sections).to.contain("How to Install Quick")
}
<pre><code> context("if it doesn’t have what you’re looking for") {
it("needs to be updated") {
let you = You(awesome: true)
expect{you.submittedAnIssue}.will.beTrue()
}
}
}
}
</code></pre>
}
You can find Quick on Github here.
A very nice behavior driven testing framework.
- An Extensive Open Source iOS Library For Working With The Twitter API Written In Swift
- Open Source: Behavioral Driven Development Testing Framework
- An Open Source Swift Library For Easily Creating Much More Useful Logging Statements
- New Open Source Visual iOS Testing Framework For Easy Testing Using Coffeescript And Screenshots
- Open Source Functional Programming Toolbelt For Swift Inspired By The Underscore.js Library
Original article: An Rspec Inspired Behavior Driven Testing Framework For Swift
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.




