Swift 开发测试框架:Quick
jopen
10年前
Quick 是一个行为驱动的 Swift 和 Objective-C 的开发测试框架。
import Quick 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") } 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() } } } } }