Skip to content

Commit b6254bc

Browse files
authored
Remove --enable-experimental-swift-testing from the Getting Started doc. (#181)
As of the January 11 daily toolchain, SwiftPM detects if a package includes swift-testing as a dependency and, if so, does not require a developer to pass `--enable-experimental-swift-testing`. This PR updates the package's Getting Started document to reflect that.
1 parent dc509d5 commit b6254bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/Testing/Testing.docc/TemporaryGettingStarted.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,18 @@ be presented with a name such as "Swift Development Toolchain 2023-01-01 (a)".
9797
Navigate to the directory containing your package and run the following command:
9898

9999
```sh
100-
swift test --enable-experimental-swift-testing
100+
swift test
101101
```
102102

103103
Swift Package Manager will build and run a test target that uses the testing
104104
library as well as a separate target that uses XCTest. To only run tests written
105105
using the testing library, pass `--disable-xctest` as an additional argument to
106106
the `swift test` command.
107107

108+
- Note: If your package does not explicitly list the testing library as a
109+
dependency, pass `--enable-experimental-swift-testing` to the `swift test`
110+
command to ensure your tests are run.
111+
108112
#### Swift 5.10
109113

110114
As of Swift 5.10, the testing library is not integrated into Swift Package

0 commit comments

Comments
 (0)