tdd

Solid

Load when implementing a confirmed behavior change through red-green-refactor; diagnose first when the root cause is unknown, and use prototype for throwaway exploration.

Testing & QA 84 stars 0 forks Updated 5 days ago

Install

View on GitHub

Quality Score: 78/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
0
Description 5%
100

Skill Content

# TDD ## Purpose Implement one observable behavior at a time through the narrowest public seam: ```text RED: one test fails for the missing target behavior GREEN: the smallest production change makes it pass REFACTOR: improve structure only while green ``` Use this for production features, confirmed bug fixes, and behavior-preserving refactors. Use `diagnose` first when the root cause is unknown. Use `prototype` when the code is disposable design learning. ## Choose A Vertical Slice Before editing production code: - identify the user or caller-visible outcome - identify the public interface and nearest real integration path - inspect adjacent tests and project conventions - select one vertical tracer bullet that can be independently proven Prefer a narrow end-to-end behavior over a broad layer-by-layer implementation. Read `references/interface-design.md` when the public seam is awkward or missing. ## RED Write exactly one test for one behavior. Do not write every imagined test up front. Run the actual test command and confirm: - the test fails before production code changes - the failure is caused by the missing target behavior, not syntax, fixture, environment, or setup failure - the assertion describes public behavior rather than private implementation shape If the test is already green, it is not RED evidence. Correct the seam or demonstrate that the requested behavior already exists before proceeding. Read `references/tests.md` and `references/mocking.md` w...

Details

Author
JasonxzWen
Repository
JasonxzWen/harness-hub
Created
4 months ago
Last Updated
5 days ago
Language
JavaScript
License
None

Similar Skills

Semantically similar based on skill content — not just same category