You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4365e8e
Browse filesBrowse the repository at this point in the historyBrowse files
The snapshot tests in this repository rely on a fixture framework (`SymbolTestsCore`) built from an Xcode project in `Tests/Projects/SymbolTests/`. The framework binary is not checked in — rebuild it once after cloning:
166
+
167
+
```bash
168
+
./Scripts/build-test-fixtures.sh
169
+
```
170
+
171
+
Then run the tests:
172
+
173
+
```bash
174
+
swift package update
175
+
swift test
176
+
```
177
+
178
+
Skipping the fixture build causes `MachOFileTests` to throw a "file not found" error at `Tests/Projects/SymbolTests/DerivedData/.../SymbolTestsCore` during test `init()`, before any assertions run.
179
+
180
+
To regenerate snapshots after a legitimate Swift-compiler / metadata change:
181
+
182
+
```bash
183
+
SNAPSHOT_TESTING_RECORD=all swift test \
184
+
--filter SymbolTestsCoreDumpSnapshotTests \
185
+
--filter SymbolTestsCoreInterfaceSnapshotTests
186
+
```
187
+
188
+
Commit the updated `__Snapshots__/` files alongside the source change that prompted the regeneration.
0 commit comments