Skip to content

Latest commit

Β 

History

History

test-driven-development

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Β 
Β 
Β 
Β 
Β 
Β 

README.md

description Drives implementation test-first through red-green-refactor cycles: one failing test, the minimal code to pass it, then cleanup under green. Use before writing production code for a new behavior, and whenever the request mentions TDD, test-driven, test-first, red-green-refactor, "write the test first", "start with a failing test", or reproducing a bug with a test before fixing it. Also use when implementation keeps landing before anyone knows how it will be verified.

Test Driven Development Plugin

Drives implementation test-first through red-green-refactor cycles: one failing test, the minimal code to pass it, then cleanup under green. Bundles the full workflow β€” loop shape, green-step strategies, bug reproduction, legacy entry, a worked example, and a cycle log β€” together with a compact quick version for routine single-behavior cycles. Framework-agnostic: no runner, assertion library, or mocking tool is assumed.

What's inside

Two paired skills β€” pick by how much the job needs:

  • skills/test-driven-development/ β€” the full loop: loop shape, green-step strategies, the stuck protocol, bug reproduction, legacy entry, plus a cycle-by-cycle worked example and a session log in resources/
  • skills/test-driven-development-quick/ β€” the compact version: the loop, seven rules, and reproduce-first for bugs, for routine single-behavior cycles

Both are generated from the repository's skills/ directory, which is the source of truth.

Related: the writing-unit-tests plugin holds the quality standard each test the loop produces must meet.

Installation

Install from this repository's plugin marketplace (defined in .github/plugin/marketplace.json):

copilot plugin marketplace add jaktestowac/awesome-copilot-for-testers
copilot plugin install test-driven-development

Note on source of truth

The skill content is a copy of skills/test-driven-development/ and skills/test-driven-development-quick/ at the repository root. Do not edit the plugin copy directly β€” update the root skill and run npm run plugin:materialize.