Skip to content

Commit

Permalink
Refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EridianAlpha committed Sep 30, 2024
1 parent dba19dd commit df38136
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,35 @@ base-mainnet-network:
)

# ================================================================
# TESTING AND COVERAGE
#LOCAL TESTING AND COVERAGE │
# ================================================================
test:; forge test --fork-url ${FORK_RPC_URL}
test-v:; forge test --fork-url ${FORK_RPC_URL} -vvvv
test-summary:; forge test --fork-url ${FORK_RPC_URL} --summary
test:; forge test
test-v:; forge test -vvvv
test-summary:; forge test --summary

coverage:
@forge coverage --fork-url ${FORK_RPC_URL} --report summary --report lcov
@forge coverage --report summary --report lcov
@echo

coverage-report:
@forge coverage --fork-url ${FORK_RPC_URL} --report debug > coverage-report.txt
@forge coverage --report debug > coverage-report.txt
@echo Output saved to coverage-report.txt

# ================================================================
# │ FORK TESTING AND COVERAGE │
# ================================================================
test-fork:; forge test --fork-url ${FORK_RPC_URL}
test-v-fork:; forge test --fork-url ${FORK_RPC_URL} -vvvv
test-summary-fork:; forge test --fork-url ${FORK_RPC_URL} --summary

coverage-fork:
@forge coverage --fork-url ${FORK_RPC_URL} --report summary --report lcov
@echo

coverage-report-fork:
@forge coverage --fork-url ${FORK_RPC_URL} --report debug > coverage-report-fork.txt
@echo Output saved to coverage-report-fork.txt

# ================================================================
# │ USER INPUT - ASK FOR VALUE │
# ================================================================
Expand Down

0 comments on commit df38136

Please sign in to comment.