-
Notifications
You must be signed in to change notification settings - Fork 39
/
Package.swift
99 lines (97 loc) · 3.62 KB
/
Package.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// swift-tools-version:5.9
import Foundation
import PackageDescription
let package = Package(
name: "muter",
platforms: [
.macOS(.v12),
],
products: [
.executable(name: "muter", targets: ["muter", "muterCore"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.1"),
.package(url: "https://github.com/onevcat/Rainbow.git", from: "4.0.1"),
.package(url: "https://github.com/dduan/Pathos.git", from: "0.4.2"),
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.2"),
.package(url: "https://github.com/johnsundell/plot.git", from: "0.14.0"),
.package(url: "https://github.com/krzysztofzablocki/Difference.git", from: "1.0.2"),
.package(url: "https://github.com/jpsim/Yams.git", from: "5.1.2"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.16.0"),
.package(url: "https://github.com/mxcl/Version.git", from: "2.0.1"),
.package(url: "https://github.com/apple/swift-format.git", from: "509.0.0"),
],
targets: [
.executableTarget(
name: "muter",
dependencies: ["muterCore"]
),
.target(
name: "muterCore",
dependencies: [
.product(name: "Pathos", package: "Pathos"),
.product(name: "Rainbow", package: "Rainbow"),
.product(name: "Plot", package: "plot"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftParser", package: "swift-syntax"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Yams", package: "yams"),
.product(name: "Version", package: "Version"),
],
path: "Sources/muterCore"
),
.target(
name: "TestingExtensions",
dependencies: [
"muterCore",
"Difference",
.product(name: "SwiftFormat", package: "swift-format"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftParser", package: "swift-syntax"),
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
],
path: "Tests/Extensions"
),
.testTarget(
name: "muterTests",
dependencies: [
"muterCore",
"TestingExtensions"
],
path: "Tests",
exclude: [
"MutationSchemata/__Snapshots__",
"TestReporting/__Snapshots__",
"MutationOperators/__Snapshots__/",
"fixtures",
"Extensions"
]
),
.testTarget(
name: "muterAcceptanceTests",
dependencies: [
"muterCore",
"TestingExtensions",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
],
path: "AcceptanceTests",
exclude: [
"__Snapshots__",
"runAcceptanceTests.sh"
]
),
.testTarget(
name: "muterRegressionTests",
dependencies: [
"muterCore",
"TestingExtensions",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
],
path: "RegressionTests",
exclude: [
"__Snapshots__",
"runRegressionTests.sh"
]
)
]
)