Skip to content

Commit 89b9d7b

Browse files
authored
[Tests] Add an integration test product for easier iteration (#121)
[Tests] Add an integration test product for easier iteration ### Motivation Some IDEs don't allow you to trigger building of targets, only products. ### Modifications Added an umbrella library product to make it possible to build locally in an IDE, not just using `swift build`. ### Result Now the product shows up in IDEs, allowing developers to iterate on the code and rebuild. ### Test Plan Tested that it shows up locally. Reviewed by: simonjbeaumont Builds: ✔︎ pull request validation (5.8) - Build finished. ✔︎ pull request validation (5.9) - Build finished. ✔︎ pull request validation (docc test) - Build finished. ✔︎ pull request validation (integration test) - Build finished. ✔︎ pull request validation (nightly) - Build finished. ✔︎ pull request validation (soundness) - Build finished. #121
1 parent 32cd8a3 commit 89b9d7b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

IntegrationTest/Package.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ let package = Package(
1919
platforms: [
2020
.macOS(.v13)
2121
],
22+
products: [
23+
.library(
24+
name: "IntegrationTestLibrary",
25+
targets: [
26+
"Types",
27+
"Client",
28+
"Server",
29+
"MockTransportClient",
30+
"MockTransportServer",
31+
]
32+
)
33+
],
2234
dependencies: [
2335
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),
2436
.package(url: "https://github.com/apple/swift-openapi-runtime", .upToNextMinor(from: "0.1.0")),

0 commit comments

Comments
 (0)