File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 22
33- [ Open Package] ( #open-package )
44- [ Lint Package] ( #lint-package )
5+ - [ Testing] ( #testing )
56- [ Creating Releases] ( #creating-releases )
67
78## Open Package
@@ -28,6 +29,14 @@ To run analysis rules:
2829make analyze
2930```
3031
32+ ## Testing
33+
34+ To re-record all existing snapshot references, delete all using the following command and then run the tests.
35+
36+ ```
37+ make delete-snapshots
38+ ```
39+
3140## Creating Releases
3241
3342Releases are made [ on the GitHub website] ( https://github.com/Tinder/CollectionBuilders/releases/new ) .
Original file line number Diff line number Diff line change @@ -39,6 +39,14 @@ analyze:
3939 swift package plugin \
4040 swiftlint analyze --strict --progress --reporter " $( format) " --compiler-log-path " $$ XCODEBUILD_LOG"
4141
42+ .PHONY : delete-snapshots
43+ delete-snapshots :
44+ @for snapshots in $$(find Tests -type d -name "__Snapshots__" ) ; \
45+ do \
46+ rm -rf " $$ snapshots" ; \
47+ echo " Deleted $$ snapshots" ; \
48+ done
49+
4250.PHONY : docs
4351docs : target ?= CollectionBuilders
4452docs : destination ?= generic/platform=iOS
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ let package = Package(
3636 " CollectionBuilders " ,
3737 " Nimble " ,
3838 ] ) ,
39- ] ,
39+ ]
4040)
4141
4242package . targets. forEach { target in
You can’t perform that action at this time.
0 commit comments