代码库> 其他> Swift (及Objective-C) 测试框架 -Quick
Swift (及Objective-C) 测试框架 -Quick
关注
上传者:ccsupport 分类:其他(Others)
查看次数:2127 下载次数:145
上传时间:2015-09-16 大小:1 KB
Quick是行为驱动的 Swift 和 Objective-C 开发框架。与测试的匹配框架 Nimble 一起使用。
// Swift

import Quick
import Nimble

class TableOfContentsSpec: QuickSpec {
  override func spec() {
    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())
        }
      }
    }
  }
}
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
提示
sina weixin mail 回到顶部