Swift 开发测试框架:Quick

jopen 6年前

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()                  }              }          }      }  }

Swift 开发测试框架:Quick

项目主页:http://www.open-open.com/lib/view/home/1404896704404