Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Testing support #239

Merged
merged 32 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1fea714
Starting to integrate with swift-testing.
mbrandonw Jun 22, 2024
f629879
convert XCTFail to reportIssue
mbrandonw Jun 22, 2024
3feb092
wip
mbrandonw Jun 22, 2024
d956781
Merge remote-tracking branch 'origin/main' into swift-testing
mbrandonw Jul 3, 2024
ee44f16
wip
mbrandonw Jul 3, 2024
73e7ec3
wip
stephencelis Jul 11, 2024
00b1415
wip
stephencelis Jul 11, 2024
5a42286
wip
stephencelis Jul 11, 2024
068274a
wip
stephencelis Jul 11, 2024
55aa2ff
wip
stephencelis Jul 11, 2024
25d9ccb
wip
stephencelis Jul 12, 2024
7c283af
wip
stephencelis Jul 12, 2024
144d3c4
wip
stephencelis Jul 12, 2024
ba965e8
debug
stephencelis Jul 12, 2024
dbfc1a5
wip
stephencelis Jul 12, 2024
1990ff0
wip
stephencelis Jul 12, 2024
b168abc
Merge remote-tracking branch 'origin/main' into swift-testing
stephencelis Jul 12, 2024
2266364
Merge remote-tracking branch 'origin/main' into swift-testing
stephencelis Jul 19, 2024
2e05064
wip
stephencelis Jul 19, 2024
d433fc9
wip
stephencelis Jul 19, 2024
6bd8466
wip
stephencelis Jul 19, 2024
ddfd02a
wip
stephencelis Jul 22, 2024
551a159
remove package access
mbrandonw Jul 22, 2024
2079c1d
Revert "remove package access"
mbrandonw Jul 22, 2024
53182db
wip
mbrandonw Jul 22, 2024
7873ebd
Revert "wip"
mbrandonw Jul 22, 2024
d477a98
spi beta reset cache
mbrandonw Jul 22, 2024
b8d324b
Merge remote-tracking branch 'origin/main' into swift-testing
mbrandonw Jul 22, 2024
d9da732
wip
mbrandonw Jul 22, 2024
ee2fc4c
wip
mbrandonw Jul 22, 2024
79fae19
wip
mbrandonw Jul 22, 2024
09f6f20
wip
mbrandonw Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
run: make test-swift
- name: Build platforms ${{ matrix.config }}
run: CONFIG=${{ matrix.config }} make build-all-platforms
- name: Build for library evolution
run: make build-for-library-evolution
# - name: Build for library evolution
# run: make build-for-library-evolution

ubuntu:
strategy:
Expand Down
38 changes: 19 additions & 19 deletions Dependencies.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/combine-schedulers",
"state" : {
"revision" : "9dc9cbe4bc45c65164fa653a563d8d8db61b09bb",
"version" : "1.0.0"
"branch" : "swift-testing",
"revision" : "6077442a6ed2826a2209afd6d23cdf3c8d8cfcaf"
}
},
{
"identity" : "swift-clocks",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-clocks",
"state" : {
"revision" : "a8421d68068d8f45fbceb418fbf22c5dad4afd33",
"version" : "1.0.2"
"branch" : "swift-testing",
"revision" : "e0efee21ecbabcc5e15eb0d004701c3a2024adae"
}
},
{
Expand Down Expand Up @@ -45,40 +45,40 @@
"version" : "1.0.0"
}
},
{
"identity" : "swift-issue-reporting",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-issue-reporting",
"state" : {
"revision" : "926f43898706eaa127db79ac42138e1ad7e85a3f",
"version" : "1.2.0"
}
},
{
"identity" : "swift-macro-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-macro-testing",
"state" : {
"revision" : "851c8b6bde2000d8051dc9aca1efee04dcc37411",
"version" : "0.4.1"
"revision" : "a35257b7e9ce44e92636447003a8eeefb77b145c",
"version" : "0.5.1"
}
},
{
"identity" : "swift-snapshot-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "8ddd519780452729c6634ad6bd0d2595938e9ea3",
"version" : "1.16.1"
"revision" : "c097f955b4e724690f0fc8ffb7a6d4b881c9c4e3",
"version" : "1.17.2"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-syntax",
"state" : {
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
}
},
{
"identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : {
"revision" : "6f30bdba373bbd7fbfe241dddd732651f2fbd1e2",
"version" : "1.1.2"
"revision" : "4c6cc0a3b9e8f14b3ae2307c5ccae4de6167ac2c",
"version" : "600.0.0-prerelease-2024-06-12"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test-linux:
--rm \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.9-focal \
swift:5.10-focal \
bash -c 'apt-get update && apt-get -y install make && make test-swift'

build-for-static-stdlib:
Expand Down
38 changes: 19 additions & 19 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/combine-schedulers",
"state" : {
"revision" : "9dc9cbe4bc45c65164fa653a563d8d8db61b09bb",
"version" : "1.0.0"
"revision" : "487a4d151e795a5e076a7e7aedcd13c2ebff6c31",
"version" : "1.0.1"
}
},
{
"identity" : "swift-clocks",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-clocks",
"state" : {
"revision" : "a8421d68068d8f45fbceb418fbf22c5dad4afd33",
"version" : "1.0.2"
"revision" : "eb64eacfed55635a771e3410f9c91de46cf5c6a0",
"version" : "1.0.3"
}
},
{
Expand Down Expand Up @@ -45,40 +45,40 @@
"version" : "1.0.0"
}
},
{
"identity" : "swift-issue-reporting",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-issue-reporting",
"state" : {
"revision" : "926f43898706eaa127db79ac42138e1ad7e85a3f",
"version" : "1.2.0"
}
},
{
"identity" : "swift-macro-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-macro-testing",
"state" : {
"revision" : "5c4a1b9d7c23cd5c08ea50677d8e89080365cb00",
"version" : "0.4.0"
"revision" : "a35257b7e9ce44e92636447003a8eeefb77b145c",
"version" : "0.5.1"
}
},
{
"identity" : "swift-snapshot-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "625ccca8570773dd84a34ee51a81aa2bc5a4f97a",
"version" : "1.16.0"
"revision" : "c097f955b4e724690f0fc8ffb7a6d4b881c9c4e3",
"version" : "1.17.2"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-syntax",
"state" : {
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
}
},
{
"identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : {
"revision" : "6f30bdba373bbd7fbfe241dddd732651f2fbd1e2",
"version" : "1.1.2"
"revision" : "4c6cc0a3b9e8f14b3ae2307c5ccae4de6167ac2c",
"version" : "600.0.0-prerelease-2024-06-12"
}
}
],
Expand Down
20 changes: 11 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-clocks", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "1.0.1"),
.package(url: "https://github.com/pointfreeco/swift-clocks", from: "1.0.3"),
.package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.1.0"),
.package(url: "https://github.com/pointfreeco/swift-issue-reporting", from: "1.2.0"),
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"601.0.0-prerelease"),
],
targets: [
.target(
name: "DependenciesTestObserver",
dependencies: [
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay")
.product(name: "IssueReporting", package: "swift-issue-reporting"),
]
),
.target(
Expand All @@ -41,21 +41,23 @@ let package = Package(
.product(name: "Clocks", package: "swift-clocks"),
.product(name: "CombineSchedulers", package: "combine-schedulers"),
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "swift-issue-reporting"),
.product(name: "XCTestDynamicOverlay", package: "swift-issue-reporting"),
]
),
.testTarget(
name: "DependenciesTests",
dependencies: [
"Dependencies",
"DependenciesMacros",
.product(name: "IssueReportingTestSupport", package: "swift-issue-reporting"),
]
),
.target(
name: "DependenciesMacros",
dependencies: [
"DependenciesMacrosPlugin",
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "swift-issue-reporting"),
]
),
.macro(
Expand All @@ -79,9 +81,9 @@ let package = Package(
#endif

#if !os(WASI)
package.dependencies.append(
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.2.0")
)
package.dependencies.append(contentsOf: [
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.2.0"),
])
package.targets.append(contentsOf: [
.testTarget(
name: "DependenciesMacrosPluginTests",
Expand Down
15 changes: 9 additions & 6 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-clocks", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "1.0.1"),
.package(url: "https://github.com/pointfreeco/swift-clocks", from: "1.0.3"),
.package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.1.0"),
.package(url: "https://github.com/pointfreeco/swift-issue-reporting", from: "1.2.0"),
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"601.0.0-prerelease"),
],
targets: [
.target(
name: "DependenciesTestObserver",
dependencies: [
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "swift-issue-reporting"),
]
),
.target(
Expand All @@ -41,21 +41,24 @@ let package = Package(
.product(name: "Clocks", package: "swift-clocks"),
.product(name: "CombineSchedulers", package: "combine-schedulers"),
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "swift-issue-reporting"),
.product(name: "XCTestDynamicOverlay", package: "swift-issue-reporting"),
]
),
.testTarget(
name: "DependenciesTests",
dependencies: [
"Dependencies",
"DependenciesMacros",
.product(name: "IssueReportingTestSupport", package: "swift-issue-reporting"),
]
),
.target(
name: "DependenciesMacros",
dependencies: [
"DependenciesMacrosPlugin",
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "swift-issue-reporting"),
.product(name: "XCTestDynamicOverlay", package: "swift-issue-reporting"),
]
),
.macro(
Expand Down
Loading