Skip to content

Commit 96defb9

Browse files
Apply standard Swift package configuration
1 parent d1feb31 commit 96defb9

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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:
2829
make 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

3342
Releases are made [on the GitHub website](https://github.com/Tinder/CollectionBuilders/releases/new).

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
4351
docs: target ?= CollectionBuilders
4452
docs: destination ?= generic/platform=iOS

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let package = Package(
3636
"CollectionBuilders",
3737
"Nimble",
3838
]),
39-
],
39+
]
4040
)
4141

4242
package.targets.forEach { target in

0 commit comments

Comments
 (0)