forked from Quick/Quick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Package.test.swift
41 lines (39 loc) · 1.44 KB
/
.Package.test.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
// swift-tools-version:3.0
import PackageDescription
let package = Package(
name: "Quick",
targets: {
#if _runtime(_ObjC)
return [
Target(name: "QuickSpecBase"),
Target(name: "Quick", dependencies: [ "QuickSpecBase" ]),
Target(name: "QuickTests", dependencies: [ "Quick" ]),
]
#else
return [
Target(name: "Quick"),
Target(name: "QuickTests", dependencies: [ "Quick" ]),
]
#endif
}(),
// TODO: Once the `test` command has been implemented in the Swift Package Manager, this should be changed to
// be `testDependencies:` instead. For now it has to be done like this for the library to get linked with the test targets.
// See: https://github.com/apple/swift-evolution/blob/master/proposals/0019-package-manager-testing.md
dependencies: [
.Package(url: "https://github.com/Quick/Nimble", majorVersion: 7)
],
exclude: {
var excludes = [
"Sources/QuickObjectiveC",
"Tests/QuickTests/QuickAfterSuiteTests/AfterSuiteTests+ObjC.m",
"Tests/QuickTests/QuickFocusedTests/FocusedTests+ObjC.m",
"Tests/QuickTests/QuickTests/FunctionalTests/ObjC",
"Tests/QuickTests/QuickTests/Helpers",
"Tests/QuickTests/QuickTests/QuickConfigurationTests.m",
]
#if !_runtime(_ObjC)
excludes.append("Sources/QuickSpecBase")
#endif
return excludes
}()
)