054-design-tdd

Featured

Use when Java implementation work should be guided by Test-Driven Development, including maintaining a test list, choosing the next behavior, writing a failing test first, implementing only enough production code to pass, and refactoring while keeping tests green. This should trigger for requests such as Apply TDD; Use test-driven development; Drive this Java change with tests; Write the failing test first; Red-green-refactor this feature. Part of Plinth Toolkit

Web & Frontend 423 stars 89 forks Updated 3 days ago Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
87
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Test-Driven Development Design Guide Java developers through Test-Driven Development for implementation work. **This is an interactive SKILL**. **What is covered in this Skill?** - Maintaining or refining a list of candidate test cases - Selecting the next useful behavior or test case before editing production code - Writing a failing test first to clarify the public interface, API shape, or usage of the code - Writing only enough functional production code to pass the selected test - Refactoring new and existing code while tests remain green - Adding newly discovered test cases to the list without losing the current TDD cycle - Reporting skipped checks, missing tests, and remaining risks when verification is incomplete ## Constraints Keep implementation work inside the red-green-refactor cycle, with one selected behavior driving each small change. - **MUST** read `references/054-design-tdd.md` before applying TDD guidance - **MUST** maintain or refine a test list when more than one behavior, edge case, or question is in scope - **MUST** select the next useful behavior or test case before writing production code - **MUST** write or describe the failing test first and use it to clarify the public interface or usage - **MUST** implement only the functional production code needed to pass the selected failing test - **MUST** refactor new and existing code only after the selected test passes and while keeping tests green - **MUST** report skipped checks, missing tests, and...

Details

Author
jabrena
Repository
jabrena/plinth
Created
1 years ago
Last Updated
3 days ago
Language
Java
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category