diff --git a/Makefile b/Makefile index 917a113..5ba1aca 100644 --- a/Makefile +++ b/Makefile @@ -30,12 +30,12 @@ test: ## Run tests with warnings treated as errors test-cov: ## Run workspace-wide tests with coverage; set COV_MIN to enforce a threshold $(CHECK_CARGO_LLVM_COV) - RUSTFLAGS="-D warnings" $(CARGO) llvm-cov --workspace --all-features --summary-only --text --fail-under-lines $(COV_MIN) $(BUILD_JOBS) + RUSTFLAGS="-D warnings" $(CARGO) llvm-cov --workspace --all-features --doctests --summary-only --text --fail-under-lines $(COV_MIN) $(BUILD_JOBS) test-cov-lcov: ## Run workspace-wide tests with coverage and write LCOV to coverage/lcov.info $(CHECK_CARGO_LLVM_COV) mkdir -p coverage - RUSTFLAGS="-D warnings" $(CARGO) llvm-cov --workspace --all-features --lcov --output-path coverage/lcov.info --fail-under-lines $(COV_MIN) $(BUILD_JOBS) + RUSTFLAGS="-D warnings" $(CARGO) llvm-cov --workspace --all-features --doctests --lcov --output-path coverage/lcov.info --fail-under-lines $(COV_MIN) $(BUILD_JOBS) target/%/$(APP): ## Build binary in debug or release mode $(CARGO) build $(BUILD_JOBS) $(if $(findstring release,$(@)),--release) --bin $(APP)