Skip to content

Commit

Permalink
fix: make tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deluca-mike committed Jun 13, 2024
1 parent ab5d1eb commit 6039f5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ profile ?=default
build:
@./build.sh -p production

test:
tests:
@./test.sh -p $(profile)

fuzz:
Expand All @@ -41,4 +41,3 @@ sizes:

clean:
forge clean && rm -rf ./abi && rm -rf ./bytecode && rm -rf ./types

11 changes: 9 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@ else
verbosity="-vvvv"
fi

if [ "$gas" = false ];
then
gasReport=""
else
gasReport="--gas-report"
fi

if [ -z "$test" ]; then
if [ -z "$directory" ]; then
forge test --match-path "test/*" $gasReport
forge test --match-path "test/*" $gasReport $verbosity
else
forge test --match-path "$directory/*.t.sol" $gasReport
forge test --match-path "$directory/*.t.sol" $gasReport $verbosity
fi
else
forge test --match-test "$test" $gasReport $verbosity
Expand Down

0 comments on commit 6039f5a

Please sign in to comment.