Using spec testing framework like Quick is nice, which enables BDD style.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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()) } } }
But in case you don’t want additional frameworks, and want to live closer to Apple SDKs as much as possible, here are few tips.