Skip to content

Commit 478ef99

Browse files
Explicitly use --testing-library swift-testing
Co-authored-by: Jonathan Grynspan <[email protected]>
1 parent 830949a commit 478ef99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Testing/Testing.docc/TemporaryGettingStarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ Wasmtime, use the following command (replace `{YOURPACKAGE}` with your package's
165165
name):
166166

167167
```sh
168-
wasmtime .build/debug/{YOURPACKAGE}PackageTests.wasm
168+
wasmtime .build/debug/{YOURPACKAGE}PackageTests.wasm --testing-library swift-testing
169169
```
170170

171171
Most WebAssembly runtimes forward trailing arguments to the WebAssembly program,
172172
so you can pass command-line options of the testing library. For example, to list
173173
all tests and filter them by name, use the following commands:
174174

175175
```sh
176-
wasmtime .build/debug/{YOURPACKAGE}PackageTests.wasm --list-tests
177-
wasmtime .build/debug/{YOURPACKAGE}PackageTests.wasm --filter "FoodTruckTests.foodTruckExists"
176+
wasmtime .build/debug/{YOURPACKAGE}PackageTests.wasm list --testing-library swift-testing
177+
wasmtime .build/debug/{YOURPACKAGE}PackageTests.wasm --testing-library swift-testing --filter "FoodTruckTests.foodTruckExists"
178178
```

0 commit comments

Comments
 (0)