What problem does it solve?
tdd-quality reduces the risk of writing tests that don’t reflect real behavior by correcting two common TDD failure modes: horizontal slicing and tests coupled to implementation details.
Core Features & Use Cases
- Vertical tracer-bullet slicing: Ensures each RED→GREEN cycle lands one behavior at a time, so later tests are informed by what the system actually learned.
- Behavior-first assertions: Guides you to write tests as specifications that exercise public APIs rather than mocks at every internal seam.
- Refactor resilience check: Uses the “rename an internal function without changing behavior” litmus test to detect and rewrite fragile tests.
Use cases include rebuilding a failing TDD flow, improving the quality of an existing test suite, and preventing refactor pain from tests that verify private implementation rather than user-visible behavior.
Quick Start
Apply the tdd-quality lens while doing TDD by choosing one high-value behavior, writing a tracer-bullet test that exercises the public interface, and iterating until the test proves behavior rather than internal structure.