From 4107592615ad249fc966be4746dfa6382d4cadfa Mon Sep 17 00:00:00 2001 From: Leynos Date: Wed, 13 Aug 2025 21:00:32 +0100 Subject: [PATCH 1/3] Include doctests in coverage targets --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 917a113..f57c8d0 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) From 031afef88f14298e3ae067ccac5f7f9f16fde241 Mon Sep 17 00:00:00 2001 From: Leynos Date: Wed, 13 Aug 2025 22:03:17 +0100 Subject: [PATCH 2/3] Indentation uses spaces instead of tabs. Makefiles require tabs for recipe commands. Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f57c8d0..17b848d 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ 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 --doctests --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) From 88a2b4e28a0b226935f6342bd59a5bcb8059fe33 Mon Sep 17 00:00:00 2001 From: Leynos Date: Wed, 13 Aug 2025 22:03:28 +0100 Subject: [PATCH 3/3] Indentation uses spaces instead of tabs. Makefiles require tabs for recipe commands. Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 17b848d..5ba1aca 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ test-cov: ## Run workspace-wide tests with coverage; set COV_MIN to enforce a th 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 --doctests --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)