Skip to content

Commit f7251e5

Browse files
committed
[swift-snapshot-tool] Add to the README a helper blurb about how to run tests against Swift Testing
Swift Testing is in the downloadable toolchains but is not in the normal library lookup path, so one needs to specify it explicitly with a -I command so it is found by the test command.
1 parent 6b21ff8 commit f7251e5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

utils/swift_snapshot_tool/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,15 @@ Options:
101101
- branch: This controls the specific branch of snapshots that are downloaded. By
102102
default uses --development. Also supports the options --release_5_0,
103103
--release_6_0, --release_6_2.
104+
105+
# FAQ and Helpful Tips
106+
107+
## Bisecting against examples using Swift Testing
108+
109+
Swift Testing is not stored in the normal place in a toolchain. To test against
110+
such an example that uses swift testing pass into ones script the following -I
111+
command:
112+
113+
```
114+
xcrun ${SWIFTC} "${@:1}" -o binary -parse-as-library -I ${SWIFT_LIBRARY_PATH}/testing
115+
```

0 commit comments

Comments
 (0)