skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
mejbaurbahar/software-tester-skills2 installs

tdd-workflow

Use when practicing or coaching test-driven development — red-green-refactor, outside-in vs inside-out (London vs Chicago), test lists, baby steps, TDD with AI coding agents, and legacy-code TDD (seams, characterization tests).

How do I install this agent skill?

npx skills add https://github.com/mejbaurbahar/software-tester-skills --skill tdd-workflow
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill is a purely informational guide for Test-Driven Development (TDD) workflows and contains no executable code or security risks.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Test-Driven Development

Write a failing test → make it pass simply → refactor. The tests are a design tool that produce a regression net as a by-product.

The loop (2–10 minutes per cycle)

  1. Test list: brainstorm behaviors/edge cases; pick the simplest next one.
  2. RED: write one small failing test; run it; see it fail for the right reason (message says what you expect).
  3. GREEN: write the least code to pass — fake it, hard-code, triangulate with a second example.
  4. REFACTOR: remove duplication, improve names, keep all green. No new behavior here.
  5. Commit; pick the next item. Update the list with anything learned.
RED   test_fizzbuzz_returns_1_for_1       → NameError
GREEN def fizzbuzz(n): return "1"
RED   test_returns_2_for_2                → "1" != "2"
GREEN def fizzbuzz(n): return str(n)      # triangulated

Two schools

Chicago / classicistLondon / mockist
DirectionInside-out, state-basedOutside-in, interaction-based
DoublesReal collaborators where cheapMock collaborators to discover roles
Good forAlgorithms, domain logicLayered apps, discovering interfaces
RiskSlow to find seamsTests coupled to implementation
Blend: outside-in acceptance test (bdd-gherkin-testing) driving inside-out unit TDD.

Heuristics

Baby steps · one assertion idea per test · test names as sentences · don't test private methods · transformation priority premise (constant→variable→conditional→loop) · keep the bar green when refactoring · delete tests that duplicate coverage.

TDD with an AI coding agent

  1. You write (or approve) the failing test first; agent implements to green. 2. Ask agent to run the suite and show red before green. 3. Forbid editing tests to pass (diff review). 4. Have it propose the next 5 test-list items and edge cases. 5. Verify with mutation testing that the tests bite.

Legacy code

Find a seam (constructor/param injection, subclass-and-override, wrapper), pin behavior with characterization tests (snapshot-golden-testing), then refactor and TDD new behavior (Feathers' Working Effectively with Legacy Code).

Smells

Test after code "TDD" · huge red phase · brittle mocks · tests that never fail · skipping refactor.

Related

unit-testing, test-design-techniques, mutation-testing, property-based-testing

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/mejbaurbahar/software-tester-skills/tdd-workflow">View tdd-workflow on skillZs</a>