Go test reporter that captures test results for TDD Guard validation.
- Go 1.24+
- TDD Guard installed globally
go install github.com/nizos/tdd-guard/reporters/go/cmd/tdd-guard-go@latestPipe go test -json output to the reporter:
go test -json ./... 2>&1 | tdd-guard-goFor projects where tests run in subdirectories, specify the project root:
go test -json ./... 2>&1 | tdd-guard-go -project-root /absolute/path/to/project/root- Path must be absolute when using
-project-rootflag - Current directory must be within the configured project root
- Falls back to current directory if not specified
Add to your Makefile:
test:
go test -json ./... 2>&1 | tdd-guard-go -project-root /absolute/path/to/project/rootThe reporter acts as a filter that:
- Reads
go test -jsonoutput from stdin - Passes the output through to stdout unchanged
- Parses test results and transforms them to TDD Guard format
- Saves results to
.claude/tdd-guard/data/test.json
This design allows it to be inserted into existing test pipelines without disrupting output.
- Test results are saved to
.claude/tdd-guard/data/test.json - See TDD Guard documentation for complete setup
MIT