让我给你讲讲 iOS 自动化测试的那些干货(14)
发表于:2017-03-10来源:csdn作者:LeoMobileDeveloper点击数:
标签:iOS
DolphinSpec: QuickSpec { override func spec() { describe( a dolphin ) { describe( its click ) { it( is loud ) { let click = Dolphin().click() expect(click.isLoud). to (beTruthy()) } it( has a high fre
DolphinSpec: QuickSpec {
override func spec() {
describe(
"a dolphin") {
describe(
"its click") {
it(
"is loud") {
let click = Dolphin().click()
expect(click.isLoud).
to(beTruthy())
}
it(
"has a high frequency") {
let click = Dolphin().click()
expect(click.hasHighFrequency).
to(beTruthy())
}
}
}
}
}
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
context可以指定用例的条件:
比如
原文转自:http://blog.csdn.net/hello_hwc/article/details/60957515