Skip to content

Commit 6c52cd9

Browse files
committed
Test definitions
1 parent 62c9bd1 commit 6c52cd9

File tree

9 files changed

+1731
-19
lines changed

9 files changed

+1731
-19
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ out
1010
lcov.info
1111

1212
# Testing
13-
test/*.tree
13+
test/**/*.tree
1414
lcov.info
1515
report
1616

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CHAIN_ID:=$(strip $(subst ',, $(subst ",,$(CHAIN_ID))))
2626
VERIFIER:=$(strip $(subst ',, $(subst ",,$(VERIFIER))))
2727

2828
TEST_COVERAGE_SRC_FILES := $(wildcard test/*.sol test/**/*.sol src/*.sol src/**/*.sol)
29-
TEST_SOURCE_FILES := $(wildcard test/*.t.yaml test/integration/*.t.yaml)
29+
TEST_SOURCE_FILES := $(wildcard test/*.t.yaml test/fork-tests/*.t.yaml)
3030
TEST_TREE_FILES := $(TEST_SOURCE_FILES:.t.yaml=.tree)
3131
DEPLOYMENT_ADDRESS := $(shell cast wallet address --private-key $(DEPLOYMENT_PRIVATE_KEY) 2>/dev/null || echo "NOTE: DEPLOYMENT_PRIVATE_KEY is not properly set on .env" > /dev/stderr)
3232

@@ -108,11 +108,11 @@ test: export ETHERSCAN_API_KEY=
108108

109109
.PHONY: test
110110
test: ## Run unit tests, locally
111-
forge test $(VERBOSITY) --no-match-path ./test/fork-tests/*
111+
forge test $(VERBOSITY) --no-match-path ./test/fork-tests/*.sol
112112

113113
.PHONY: test-fork
114114
test-fork: ## Run fork tests, using RPC_URL
115-
forge test $(VERBOSITY) --match-path ./test/fork-tests/*
115+
forge test $(VERBOSITY) --match-path ./test/fork-tests/*.sol
116116

117117
test-coverage: report/index.html ## Generate an HTML coverage report under ./report
118118
@which open > /dev/null && open report/index.html || true

TESTS.md

Lines changed: 592 additions & 14 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)