Skip to content

Commit 265d4bd

Browse files
Swift Testing (#88)
* Alternate * wip * wip * wip --------- Co-authored-by: Brandon Williams <mbrandonw@hey.com>
1 parent 14a88cb commit 265d4bd

File tree

35 files changed

+651
-833
lines changed

35 files changed

+651
-833
lines changed

Package.resolved

Lines changed: 0 additions & 96 deletions
This file was deleted.

Package.swift

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ let package = Package(
1212
],
1313
products: [
1414
.library(name: "IssueReporting", targets: ["IssueReporting"]),
15+
.library(name: "IssueReportingTestSupport", targets: ["IssueReportingTestSupport"]),
1516
.library(name: "XCTestDynamicOverlay", targets: ["XCTestDynamicOverlay"]),
1617
],
1718
targets: [
1819
.target(
19-
name: "IssueReporting",
20-
exclude: ["Resources/600"],
21-
resources: [
22-
.process("Resources/509"),
23-
]
20+
name: "IssueReporting"
2421
),
2522
.testTarget(
2623
name: "IssueReportingTests",
2724
dependencies: ["IssueReporting"]
2825
),
26+
.target(
27+
name: "IssueReportingTestSupport"
28+
),
2929
.target(
3030
name: "XCTestDynamicOverlay",
3131
dependencies: ["IssueReporting"]
@@ -37,17 +37,6 @@ let package = Package(
3737
]
3838
)
3939

40-
#if os(Linux) || os(Windows)
41-
package.products.append(
42-
.library(
43-
name: "IssueReportingTestSupport",
44-
type: .dynamic,
45-
targets: ["IssueReportingTestSupport"]
46-
)
47-
)
48-
package.targets[0].exclude.append("Resources/509")
49-
#endif
50-
5140
#if os(macOS)
5241
package.dependencies.append(contentsOf: [
5342
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),

Package@swift-6.0.swift

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,33 @@ let package = Package(
1212
],
1313
products: [
1414
.library(name: "IssueReporting", targets: ["IssueReporting"]),
15+
.library(name: "IssueReportingTestSupport", targets: ["IssueReportingTestSupport"]),
1516
.library(name: "XCTestDynamicOverlay", targets: ["XCTestDynamicOverlay"]),
1617
],
1718
targets: [
1819
.target(
19-
name: "IssueReporting",
20-
exclude: ["Resources/509"],
21-
resources: [
22-
.process("Resources/600"),
23-
]
20+
name: "IssueReporting"
2421
),
2522
.testTarget(
2623
name: "IssueReportingTests",
27-
dependencies: ["IssueReporting"]
24+
dependencies: [
25+
"IssueReporting",
26+
"IssueReportingTestSupport",
27+
]
28+
),
29+
.target(
30+
name: "IssueReportingTestSupport"
2831
),
2932
.target(
3033
name: "XCTestDynamicOverlay",
3134
dependencies: ["IssueReporting"]
3235
),
3336
.testTarget(
3437
name: "XCTestDynamicOverlayTests",
35-
dependencies: ["XCTestDynamicOverlay"]
38+
dependencies: [
39+
"IssueReportingTestSupport",
40+
"XCTestDynamicOverlay"
41+
]
3642
),
3743
],
3844
swiftLanguageVersions: [.v6]
@@ -42,14 +48,6 @@ let package = Package(
4248
package.dependencies.append(
4349
.package(url: "https://github.com/apple/swift-testing", from: "0.11.0")
4450
)
45-
package.products.append(
46-
.library(
47-
name: "IssueReportingTestSupport",
48-
type: .dynamic,
49-
targets: ["IssueReportingTestSupport"]
50-
)
51-
)
52-
package.targets[0].exclude.append("Resources/600")
5351
#endif
5452

5553
#if os(macOS)

0 commit comments

Comments
 (0)