From 159f7435bfb0786232bf84a82f5cb794b90add38 Mon Sep 17 00:00:00 2001 From: Stuart Montgomery Date: Tue, 22 Jul 2025 10:32:30 -0500 Subject: [PATCH 1/2] Mention module name and presence in toolchain in README --- README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8df465217..cbeece70d 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ Swift expressions and operators, and captures the evaluated values so you can quickly understand what went wrong when a test fails. ```swift +import Testing + @Test func helloWorld() { let greeting = "Hello, world!" #expect(greeting == "Hello") // Expectation failed: (greeting → "Hello, world!") == "Hello" @@ -84,11 +86,18 @@ func mentionedContinents(videoName: String) async throws { ### Cross-platform support -Swift Testing works on all major platforms supported by Swift, including Apple -platforms, Linux, and Windows, so your tests can behave more consistently when -moving between platforms. It’s developed as open source and discussed on the -[Swift Forums](https://forums.swift.org/c/development/swift-testing/103) so the -very best ideas, from anywhere, can help shape the future of testing in Swift. +Swift Testing is included in officially-supported Swift toolchains, including +those for Apple platforms, Linux, and Windows. This means you don't need to +declare a package dependency to use it—just import the `Testing` module: + +```swift +import Testing +``` + +Swift Testing is developed as open source and discussed on the +[Swift Forums](https://forums.swift.org/c/development/swift-testing/103) +so the very best ideas, from anywhere, can help shape the future of testing in +Swift. The table below describes the current level of support that Swift Testing has for various platforms: From 4be8a2bad13c3d1d328d03d9f5fbf45c0f3871f9 Mon Sep 17 00:00:00 2001 From: Stuart Montgomery Date: Tue, 22 Jul 2025 11:05:51 -0500 Subject: [PATCH 2/2] PR feedback --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cbeece70d..0d853ab78 100644 --- a/README.md +++ b/README.md @@ -87,14 +87,15 @@ func mentionedContinents(videoName: String) async throws { ### Cross-platform support Swift Testing is included in officially-supported Swift toolchains, including -those for Apple platforms, Linux, and Windows. This means you don't need to -declare a package dependency to use it—just import the `Testing` module: +those for Apple platforms, Linux, and Windows. To use the library, import the +`Testing` module: ```swift import Testing ``` -Swift Testing is developed as open source and discussed on the +You don't need to declare a package dependency to use Swift Testing. It's +developed as open source and discussed on the [Swift Forums](https://forums.swift.org/c/development/swift-testing/103) so the very best ideas, from anywhere, can help shape the future of testing in Swift.