Skip to main content
InterviewHubPRO
Section Overview
Q8

Question 8 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

16%
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:
      1. Red: Write a failing automated test before writing any implementation code.
      2. Green: Write the bare minimum code necessary to make the test pass.
      3. Refactor: Clean up the code, eliminate duplication, and improve architecture while keeping all tests passing.
  • 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.