文件名称:Spectre:Swift 项目和 Playground 的 BDD 框架和测试运行器
文件大小:224KB
文件格式:ZIP
更新时间:2024-08-24 20:29:47
Swift
幽灵 。 用于 Swift 项目和 Playground 的行为驱动开发 (BDD) 框架和测试运行器。 它与 OS X 和 Linux 兼容。 用法 describe ( " a person " ) { let person = Person ( name : " Kyle " ) $0 . it ( " has a name " ) { try expect (person. name ) == " Kyle " } $0 . it ( " returns the name as description " ) { try expect (person. description ) == " Kyle " } } 记者 Spectre 目前有两个内置报告器,Standard 和 Dot 报告器。 支持自定义记者,制作符合Reporter的类
【文件预览】:
Spectre-master
----Screenshots()
--------failure.png(41KB)
--------failure-dot.png(36KB)
--------Playground.png(60KB)
--------success-dot.png(32KB)
--------success.png(35KB)
----.github()
--------workflows()
----Package@swift-4.2.swift(324B)
----Sources()
--------Spectre()
----IntegrationTests()
--------Disabled-expected-output.txt(105B)
--------Disabled-subset-match-output.txt(105B)
--------Passing-expected-output.txt(69B)
--------Failing-subset-match-output.txt(200B)
--------Failing-expected-output.txt(200B)
--------Sources()
--------Failing-subset-mismatch-output.txt(47B)
--------run.sh(2KB)
--------Failing-expected-dot-output.txt(158B)
--------Disabled-subset-mismatch-output.txt(47B)
--------Failing-expected-tap-output.txt(108B)
--------Disabled-expected-tap-output.txt(92B)
--------Passing-subset-match-output.txt(69B)
--------Package@swift-5.0.swift(550B)
--------Passing-expected-tap-output.txt(40B)
--------Package.swift(519B)
--------Passing-expected-dot-output.txt(27B)
--------Passing-subset-mismatch-output.txt(47B)
--------Disabled-expected-dot-output.txt(39B)
----Spectre.podspec.json(935B)
----Tests()
--------LinuxMain.swift(110B)
--------SpectreTests()
----Spectre.playground()
--------Sources()
--------Contents.swift(386B)
--------contents.xcplayground(196B)
--------playground.xcworkspace()
----.travis.yml(419B)
----LICENSE(1KB)
----README.md(3KB)
----Package@swift-5.0.swift(317B)
----Package.swift(285B)
----.gitignore(381B)
----CHANGELOG.md(2KB)