| Crates.io | tdd-guard-rust |
| lib.rs | tdd-guard-rust |
| version | 0.1.0 |
| created_at | 2025-08-29 19:19:49.687135+00 |
| updated_at | 2025-08-29 19:19:49.687135+00 |
| description | Rust test reporter for TDD Guard validation |
| homepage | https://github.com/nizos/tdd-guard |
| repository | https://github.com/nizos/tdd-guard |
| max_upload_size | |
| id | 1816422 |
| size | 62,428 |
Rust test reporter that captures test results for TDD Guard validation.
Note: This reporter is part of the TDD Guard project, which ensures Claude Code follows Test-Driven Development principles.
cargo-nextest (recommended) or cargo test with JSON output supportnpm install -g tdd-guard
cargo install tdd-guard-rust
The reporter works as a filter that processes test output while passing it through unchanged.
cargo nextest run 2>&1 | tdd-guard-rust --project-root /absolute/path/to/project
cargo test -- -Z unstable-options --format json 2>&1 | tdd-guard-rust --project-root /absolute/path/to/project
The reporter can also execute tests directly:
# Auto-detect runner (prefers nextest)
tdd-guard-rust --project-root /absolute/path/to/project
# Force specific runner
tdd-guard-rust --project-root /absolute/path/to/project --runner nextest
tdd-guard-rust --project-root /absolute/path/to/project --runner cargo
Add to your Makefile:
.PHONY: test
test:
cargo nextest run 2>&1 | tdd-guard-rust --project-root $(PWD) --passthrough
.PHONY: test-tdd
test-tdd:
tdd-guard on && $(MAKE) test
The --project-root flag must be an absolute path to your project directory. This is where the .claude/tdd-guard/data/test.json file will be written.
--passthrough: Force passthrough mode even if stdin is a terminal--runner [auto|nextest|cargo]: Choose test runner for direct execution (default: auto)--project-root: Absolute path to project directory (required)The reporter captures JSON-formatted test output, passes it through unchanged to stdout, and saves TDD Guard-formatted results to .claude/tdd-guard/data/test.json.
MIT - See LICENSE file in the repository root.