Skip to content
Merged
Changes from all commits
Commits
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
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -84,11 +86,19 @@ 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. To use the library, import the
`Testing` module:

```swift
import Testing
```

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.

The table below describes the current level of support that Swift Testing has
for various platforms:
Expand Down