Emcee
41 строка · 1.7 Кб
1import AppleTestModels
2import CommonTestModels
3import DeveloperDirModels
4import Foundation
5import PathLib
6import SimulatorPoolModels
7
8public struct AppleTestContext: Codable, Hashable, CustomStringConvertible {
9public let contextId: String
10public let developerDir: DeveloperDir
11public let environment: [String: String]
12public let userInsertedLibraries: [String]
13public let simulator: Simulator
14public let testRunnerWorkingDirectory: AbsolutePath
15public let testsWorkingDirectory: AbsolutePath
16public let testAttachmentLifetime: TestAttachmentLifetime
17
18public init(
19contextId: String,
20developerDir: DeveloperDir,
21environment: [String: String],
22userInsertedLibraries: [String],
23simulator: Simulator,
24testRunnerWorkingDirectory: AbsolutePath,
25testsWorkingDirectory: AbsolutePath,
26testAttachmentLifetime: TestAttachmentLifetime
27) {
28self.contextId = contextId
29self.developerDir = developerDir
30self.environment = environment
31self.userInsertedLibraries = userInsertedLibraries
32self.simulator = simulator
33self.testRunnerWorkingDirectory = testRunnerWorkingDirectory
34self.testsWorkingDirectory = testsWorkingDirectory
35self.testAttachmentLifetime = testAttachmentLifetime
36}
37
38public var description: String {
39return "<\(type(of: self)): contextId: \(contextId) simulator: \(simulator), developerDir: \(developerDir), testRunnerWorkingDirectory: \(testRunnerWorkingDirectory), testsWorkingDirectory: \(testsWorkingDirectory), env: \(environment), userInsertedLibraries: \(userInsertedLibraries), testAttachmentLifetime: \(testAttachmentLifetime)>"
40}
41}
42