Skip to content

Commit

Permalink
Convert UnitTests to use swift-testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdav committed Apr 15, 2024
1 parent 4555637 commit 0ab5d32
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 76 deletions.
23 changes: 23 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "fa8f95c2d536d6620cc2f504ebe8a6167c9fc2dd",
"version" : "510.0.1"
}
},
{
"identity" : "swift-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-testing.git",
"state" : {
"branch" : "main",
"revision" : "12b0fd9f662e1078e83c7c7f6f8c7cf67cae0c6a"
}
}
],
"version" : 2
}
12 changes: 9 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ let package = Package(
products: [
.library(name: "WebDriver", targets: ["WebDriver"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-testing.git", branch: "main"),
],
targets: [
.target(
name: "WebDriver",
Expand All @@ -17,9 +20,12 @@ let package = Package(
path: "Tests/Common"),
.testTarget(
name: "UnitTests",
dependencies: ["TestsCommon", "WebDriver"],
// Ignore "LNK4217: locally defined symbol imported" spew due to SPM library support limitations
linkerSettings: [ .unsafeFlags(["-Xlinker", "-ignore:4217"], .when(platforms: [.windows])) ]),
dependencies: [
"TestsCommon",
"WebDriver",
.product(name: "Testing", package: "swift-testing")
]
),
]
)

Expand Down
Loading

0 comments on commit 0ab5d32

Please sign in to comment.