Skip to content

Commit

Permalink
Add build as test and coverage prereq
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde committed Aug 30, 2024
1 parent 22c79aa commit aaf2a3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aaf2a3a

Please sign in to comment.