File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 5151
5252 - name : Fuzz test smart contracts
5353 run : npm run test:fuzz
54+
55+ - name : Invariant test smart contracts
56+ run : npm run test:invariant
Original file line number Diff line number Diff line change @@ -1071,6 +1071,12 @@ safe-change-owner: validate-deploy change-owner-fork
10711071docs :
10721072 @echo " Documentation is available in docs/FOUNDRY_MAKEFILE_GUIDE.md"
10731073
1074+ # Invariant tests
1075+ .PHONY : test-invariant
1076+ test-invariant :
1077+ @echo " Running invariant tests..."
1078+ forge test --match-path " test/invariant/**/*.t.sol" -vv
1079+
10741080# Catch-all target for hash-quote arguments (pegin/pegout, network names, file paths)
10751081# This prevents make from complaining about unknown targets when using: make hash-quote pegin testnet
10761082ifneq (,$(findstring hash-quote,$(MAKECMDGOALS ) ) )
Original file line number Diff line number Diff line change 77 "compile" : " npm run lint:sol && forge build" ,
88 "test" : " npm run compile && make test-unit" ,
99 "test:fuzz" : " npm run compile && make test-fuzz" ,
10+ "test:invariant" : " npm run compile && make test-invariant" ,
1011 "coverage" : " forge coverage" ,
1112 "lint:ts" : " npx prettier --check . && npx eslint ." ,
1213 "lint:sol" : " solhint 'src/**/*.sol'" ,
You can’t perform that action at this time.
0 commit comments