-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathBotParsingTests.swift
83 lines (61 loc) · 2.04 KB
/
BotParsingTests.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// BotParsingTests.swift
// XcodeServerSDK
//
// Created by Honza Dvorsky on 17/06/15.
// Copyright (c) 2015 Honza Dvorsky. All rights reserved.
//
#if os(iOS)
import Foundation
#else
import Cocoa
#endif
import XCTest
import XcodeServerSDK
class BotParsingTests: XCTestCase {
//MARK: shared stuff
func testShared() {
let bot = self.botInFileWithName("bot_mac_xcode6")
XCTAssertEqual(bot.id, "6b3de48352a8126ce7e08ecf85093613")
XCTAssertEqual(bot.rev, "16-d1e9e3d7e76a09381ca909d47ac6c18d")
XCTAssertEqual(bot.tinyID, "2CA4EA9")
}
//MARK: bot
func testBot() {
let bot = self.botInFileWithName("bot_mac_xcode6")
XCTAssertEqual(bot.name, "Builda Archiver")
XCTAssertEqual(bot.integrationsCount, 7)
}
//MARK: configuration
func testConfiguration() {
let configuration = self.configurationFromBotWithName("bot_mac_xcode6")
XCTAssertEqual(configuration.test, true)
XCTAssertEqual(configuration.analyze, true)
XCTAssertEqual(configuration.archive, true)
XCTAssertEqual(configuration.schemeName, "Buildasaur")
}
//MARK: cleaning policy
func testCleanPolicy() {
//TODO: will be a whole set of tests, add all possible cases
}
//MARK: test schedule
func testSchedule() {
//TODO: will be a whole set of tests, add all possible cases
}
//MARK: blueprint (good luck with this one)
func testBlueprint() {
//TODO: will be a whole set of tests, add all possible cases
}
//MARK: destination type
func testDestinationType() {
//TODO: will be a whole set of tests, add all possible cases
}
//MARK: triggers
func testTriggers() {
//TODO: will be a whole set of tests, add all possible cases
}
//MARK: testing device ids (on both Xcode 6 and 7 formats!!!)
func testTestingDeviceIds() {
//TODO: will be a whole set of tests, add all possible cases
}
}