Skip to content

Commit b9360f9

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents eebea15 + c80c143 commit b9360f9

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Ryan Carver
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SnapshotTestingEnvOverlay
22

3-
A drop-in replacement for swift-snapshot-testing that allows the snapshots directory
3+
A drop-in replacement for [swift-snapshot-testing](https://github.com/pointfreeco/swift-snapshot-testing) that allows the snapshots directory
44
to be configured via ENV variable.
55

66
This supports running on Xcode Cloud where tests don't have access to the file system,
@@ -11,6 +11,10 @@ with the exception of a `ci_scripts` directory. By symlinking your snapshots to
1111
SNAPSHOTTESTING_PACKAGES_PATH=/Volumes/workspace/respository/ci_scripts/snapshots
1212
```
1313

14+
Setting this ENV var means your snapshots are found in `ci_scripts/snapshots` instead of
15+
the standard location relative to the test file. By *not* setting this variable in
16+
local development the normal snapshot location and workflow is untouched.
17+
1418
### Example Script
1519

1620
This script will symlink all `__Snapshots__` directories into `ci_scripts/snapshots`,
@@ -36,3 +40,7 @@ find $search_path_from_snapshots -type d -name "__Snapshots__" | grep -v .build
3640
ln -s "$dir" "$parent_name"
3741
done
3842
```
43+
44+
## License
45+
46+
MIT

0 commit comments

Comments
 (0)