-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 940 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
38
.PHONY: clean
clean: ## Remove build artifacts
@forge clean
.PHONY: build
build: ## Build project
forge build
.PHONY: test
test: ## Run whole testsuite
forge test -vvv
.PHONY: update
update: ## Update dependencies
forge update
.PHONY: testDeployment
testDeployment: ## Run deployment tests
forge test -vvv --match-contract "Deployment"
.PHONY: testOnlyOwner
testOnlyOwner: ## Run onlyOwner tests
forge test -vvv --match-contract "OnlyOwner"
.PHONY: testButtonWrapper
testButtonWrapper: ## Run ButtonWrapper tests
forge test -vvv --match-contract "ButtonWrapper"
.PHONY: testRestructure
testRestructure: ## Run restructure tests
forge test -vvv --match-contract "Restructure"
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# Run Debugger with:
# forge run ./src/test/<Contract>.t.sol --sig "<function>()" --debug