mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
Signed-off-by: Ali Mehraji <a.mehraji75@gmail.com> Co-authored-by: houseme <housemecn@gmail.com>
20 lines
636 B
Makefile
20 lines
636 B
Makefile
## —— Tests and e2e test ---------------------------------------------------------------------------
|
||
|
||
.PHONY: test
|
||
test: core-deps test-deps ## Run all tests
|
||
@echo "🧪 Running tests..."
|
||
@if command -v cargo-nextest >/dev/null 2>&1; then \
|
||
cargo nextest run --all --exclude e2e_test; \
|
||
else \
|
||
echo "ℹ️ cargo-nextest not found; falling back to 'cargo test'"; \
|
||
cargo test --workspace --exclude e2e_test -- --nocapture; \
|
||
fi
|
||
cargo test --all --doc
|
||
|
||
.PHONY: e2e-server
|
||
e2e-server: ## Run e2e-server tests
|
||
sh $(shell pwd)/scripts/run.sh
|
||
|
||
.PHONY: probe-e2e
|
||
probe-e2e: ## Probe e2e tests
|
||
sh $(shell pwd)/scripts/probe.sh
|