-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
37 lines (26 loc) · 831 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-include .env.local
.EXPORT_ALL_VARIABLES:
MAKEFLAGS += --no-print-directory
install:
yarn
foundryup
git submodule update --init --recursive
contracts:
FOUNDRY_TEST=/dev/null forge build --sizes --force
test:
@echo Running tests with seed \"${FOUNDRY_FUZZ_SEED}\",\
match contract patterns \"\(${FOUNDRY_MATCH_CONTRACT}\)!${FOUNDRY_NO_MATCH_CONTRACT}\",\
match test patterns \"\(${FOUNDRY_MATCH_TEST}\)!${FOUNDRY_NO_MATCH_TEST}\"
forge test -vvv | tee trace.ansi
test-%:
@FOUNDRY_MATCH_TEST=$* make test
contract-% c-%:
@FOUNDRY_MATCH_CONTRACT=$* make test
coverage:
@echo Create lcov coverage report
forge coverage --report lcov
lcov --remove lcov.info -o lcov.info "test/*"
lcov-html:
@echo Transforming the lcov coverage report into html
genhtml lcov.info -o coverage
.PHONY: test coverage contracts