Software Testing & QA (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
TDD (Test-Driven Development) vs. BDD (Behavior-Driven Development).
junior Levelsoftware-testingBasic
In Simple Words:
- TDD (Test-Driven Development):
- Developer-centric engineering discipline following the Red-Green-Refactor cycle:
- Red: Write a failing automated test before writing any implementation code.
- Green: Write the bare minimum code necessary to make the test pass.
- Refactor: Clean up the code, eliminate duplication, and improve architecture while keeping all tests passing.
- Developer-centric engineering discipline following the Red-Green-Refactor cycle:
- BDD (Behavior-Driven Development):
- Extends TDD to bridge the communication gap between business stakeholders, QA, and developers using human-readable domain language (Gherkin syntax:
Feature,Scenario,Given,When,Then). Tools: Cucumber, SpecFlow.
- Extends TDD to bridge the communication gap between business stakeholders, QA, and developers using human-readable domain language (Gherkin syntax: