From ada4695541ed74cfe69f66dfdeefdce2f7ed00bb Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 25 Feb 2026 09:21:04 +0000 Subject: [PATCH] story-kit: merge 175_story_add_rust_test_coverage_reporting_with_cargo_llvm_cov --- .gitignore | 3 +++ .story_kit/specs/tech/STACK.md | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 851a088..f35e0d0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,9 @@ store.json # Agent worktrees (managed by the server, not tracked in git) .story_kit/worktrees/ +# Coverage reports (generated by cargo-llvm-cov, not tracked in git) +.story_kit/coverage/ + # Rust stuff target diff --git a/.story_kit/specs/tech/STACK.md b/.story_kit/specs/tech/STACK.md index 3673abe..73b4ede 100644 --- a/.story_kit/specs/tech/STACK.md +++ b/.story_kit/specs/tech/STACK.md @@ -78,6 +78,10 @@ To support both Remote and Local models, the system implements a `ModelProvider` * `cargo clippy --all-targets --all-features` must show 0 errors, 0 warnings * `cargo check` must succeed * `cargo nextest run` must pass all tests +* **Test Coverage:** + * Generate JSON report: `cargo llvm-cov nextest --no-clean --json --output-path .story_kit/coverage/server.json` + * Generate lcov report: `cargo llvm-cov report --lcov --output-path .story_kit/coverage/server.lcov` + * Reports are written to `.story_kit/coverage/` (excluded from git) ### TypeScript / React * **Style:** Biome formatter (replaces Prettier/ESLint).