Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
caglacelik committed Dec 1, 2024
1 parent 74ef499 commit 18d41c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ doc:
fmt:
forge fmt

# Coverage
cov:
forge coverage --no-match-coverage "(test|mock|script)"

# TODO: forge-verify

# Prevent make from interpreting the network name as a target
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ Check coverages with:
```sh
bash coverage.sh
```
or to see summarized coverages on terminal:

```sh
make cov
```

You can see coverages under the coverage directory.

Expand Down
2 changes: 1 addition & 1 deletion coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e
forge coverage \
--report lcov \
--report summary \
--no-match-coverage "(test|mock|token)"
--no-match-coverage "(test|mock|script)"

# Install lcov
brew install lcov
Expand Down

0 comments on commit 18d41c2

Please sign in to comment.