Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- [Open Package](#open-package)
- [Lint Package](#lint-package)
- [Testing](#testing)
- [Creating Releases](#creating-releases)

## Open Package
Expand All @@ -28,6 +29,14 @@ To run analysis rules:
make analyze
```

## Testing

To re-record all existing snapshot references, delete all using the following command and then run the tests.

```
make delete-snapshots
```

## Creating Releases

Releases are made [on the GitHub website](https://github.com/Tinder/CollectionBuilders/releases/new).
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ analyze:
swift package plugin \
swiftlint analyze --strict --progress --reporter "$(format)" --compiler-log-path "$$XCODEBUILD_LOG"

.PHONY: delete-snapshots
delete-snapshots:
@for snapshots in $$(find Tests -type d -name "__Snapshots__"); \
do \
rm -rf "$$snapshots"; \
echo "Deleted $$snapshots"; \
done

.PHONY: docs
docs: target ?= CollectionBuilders
docs: destination ?= generic/platform=iOS
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let package = Package(
"CollectionBuilders",
"Nimble",
]),
],
]
)

package.targets.forEach { target in
Expand Down