Skip to content

Commit

Permalink
Makefile targets work
Browse files Browse the repository at this point in the history
  • Loading branch information
pmikolajczyk41 committed Mar 29, 2024
1 parent 6c9e5cd commit 4591c19
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions shielder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,18 @@ build-shielder: ## Builds shielder contracts.
.PHONY: setup-tests
setup-tests: build-psp22 build-shielder ## Builds contracts and generates wrappers.

.PHONY: shielder-unit-tests
shielder-unit-tests: ## Runs unit tests for contract.
@echo "Running shielder unit tests" ; \
cargo test --quiet --manifest-path contract/Cargo.toml --release -- --nocapture ; \
.PHONY: shielder-tests
shielder-tests: ## Runs tests for contract.
@echo "Running shielder tests" ; \
cargo test --manifest-path contract/Cargo.toml --release -- --nocapture ; \

.PHONY: mocked-zk-unit-tests
mocked-zk-unit-tests: ## Runs unit tests for contract.
@echo "Running mocked_zk unit tests" ; \
cargo test --quiet --manifest-path mocked_zk/Cargo.toml --release -- --nocapture ; \

.PHONY: shielder-drink-tests
shielder-drink-tests: setup-tests ## Runs drink tests for contract.
@echo "Running shielder drink tests" ; \
cargo test --quiet --manifest-path drink_tests/Cargo.toml --release -- --nocapture ; \

.PHONY: tests
tests: shielder-unit-tests mocked-zk-unit-tests shielder-drink-tests ## Runs tests for contract.
tests: shielder-tests mocked-zk-unit-tests ## Runs tests for contract.

.PHONY:
all: check tests

0 comments on commit 4591c19

Please sign in to comment.