Intermediate Vocabulary #tdd#bdd#testing#gherkin

TDD & BDD Testing Vocabulary

5 exercises — Practice TDD and BDD vocabulary in English: red-green-refactor, Gherkin syntax, example mapping, mutation testing, and test architecture.

Core TDD & BDD vocabulary clusters
  • TDD cycle: red (failing test), green (minimal implementation), refactor (improve design), repeat
  • Gherkin: Feature, Scenario, Given/When/Then/And/But, Scenario Outline, Examples table
  • BDD discovery: Example Mapping, Three Amigos, concrete examples, rule-based thinking
  • Test types: unit, integration, contract, E2E, acceptance test; test pyramid vs. test ice cream cone
  • Mutation testing: mutant, killed mutant, survived mutant, mutation score, PIT/Stryker
0 / 5 completed
1 / 5
A senior developer explains TDD to a developer who never used it:
"TDD — Test-Driven Development — flips the order: you write the failing test first, then the minimum code to make it pass, then refactor. The red-green-refactor cycle. Red: write a test that fails (it must fail — if it passes immediately, you're not testing anything new). Green: write the simplest code that makes it pass — not the cleanest, just the minimum. Refactor: now clean up the code with the safety net of the passing test. The cycle takes 2-5 minutes per iteration."
Why must the test in the red phase fail before you write any implementation?