Skip to content

Commit 4d2ffc9

Browse files
committed
Makefile: add nextest targets
1 parent 8d6dd97 commit 4d2ffc9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,26 @@ test-release: ## Run tests in release mode
234234
test-vrf: ## Run VRF tests, requires nightly Rust
235235
@cd vrf && cargo +nightly test --release -- -Z unstable-options --report-time
236236

237+
.PHONY: nextest
238+
nextest: ## Run tests with cargo-nextest for faster execution
239+
@cargo nextest run
240+
241+
.PHONY: nextest-release
242+
nextest-release: ## Run tests in release mode with cargo-nextest
243+
@cargo nextest run --release
244+
245+
.PHONY: nextest-p2p
246+
nextest-p2p: ## Run P2P tests with cargo-nextest
247+
@cargo nextest run -p p2p --tests
248+
249+
.PHONY: nextest-ledger
250+
nextest-ledger: build-ledger ## Run ledger tests with cargo-nextest, requires nightly Rust
251+
@cd ledger && cargo +nightly nextest run --release
252+
253+
.PHONY: nextest-vrf
254+
nextest-vrf: ## Run VRF tests with cargo-nextest, requires nightly Rust
255+
@cd vrf && cargo +nightly nextest run --release
256+
237257
# Docker build targets
238258

239259
.PHONY: docker-build-all

0 commit comments

Comments
 (0)