diff --git a/Makefile b/Makefile index 7af7de0bb..260e66013 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ EF_TESTS_DIR := crates/evm/ethereum-tests help: ## Display this help message @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) +.PHONY: build build: ## Build the project @cargo build @@ -24,7 +25,7 @@ clean-node: ## Cleans local dbs needed for sequencer and nodes test-legacy: ## Runs test suite with output from tests printed @cargo test -- --nocapture -Zunstable-options --report-time -test: $(EF_TESTS_DIR) ## Runs test suite using next test +test: build $(EF_TESTS_DIR) ## Runs test suite using next test @cargo nextest run --workspace --all-features --no-fail-fast $(filter-out $@,$(MAKECMDGOALS)) install-dev-tools: ## Installs all necessary cargo helpers @@ -75,7 +76,7 @@ find-unused-deps: ## Prints unused dependencies for project. Note: requires nigh find-flaky-tests: ## Runs tests over and over to find if there's flaky tests flaky-finder -j16 -r320 --continue "cargo test -- --nocapture" -coverage: $(EF_TESTS_DIR) ## Coverage in lcov format +coverage: build $(EF_TESTS_DIR) ## Coverage in lcov format cargo llvm-cov --locked --lcov --output-path lcov.info nextest --workspace --all-features coverage-html: ## Coverage in HTML format