Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ TESTS=$(shell find tests/ -type f -name '*.egg' -not -name '*repro-*')

WWW=${PWD}/target/www

# Keep release-mode test builds checking debug assertions without changing the
# normal release profile used by CodSpeed benchmarks and production binaries.
TEST_PROFILE_ENV=CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS=true

all: test nits docs

# Build egglog and benchmark every tests/*.egg file with hyperfine, writing an
Expand All @@ -18,14 +22,14 @@ nightly:
nightly/.venv/bin/python scripts/nightly_bench.py

test: doctest
cargo insta test --test-runner nextest --release --workspace --unreferenced reject
$(TEST_PROFILE_ENV) cargo insta test --test-runner nextest --release --workspace --unreferenced reject

coverage:
cargo llvm-cov nextest --release --workspace --lcov --output-path lcov.info
$(TEST_PROFILE_ENV) cargo llvm-cov nextest --release --workspace --lcov --output-path lcov.info
# Note: doctests are not included in coverage reports

doctest:
cargo test --doc --release --workspace
$(TEST_PROFILE_ENV) cargo test --doc --release --workspace


nits:
Expand Down
Loading