BDD & TDD / Quiz

Name It Like It Failed

Arrange, Act, Assert, and test names that report the broken rule before you open the file. Structure is a debugging feature.

Difficulty
Medium
Format
Quiz
Points
150
Estimate
10 min

// MISSION BRIEF

Your Mission

At 2 a.m., a red test named test_user_2 is an insult. This quiz covers the AAA structure, naming that carries behavior + condition + expectation, and the structural habits (one act, no logic) that make failures self-explanatory.

Scoring: timed quiz; accuracy first, speed bonus for fast clean runs.

// FIRST CONTACT

Battle teaser

The three AAA phases, in order, are:

  1. AAct, Arrange, Assert
  2. BAssert, Act, Arrange
  3. CArrange the preconditions, Act with the one operation under test, Assert the outcome
  4. DArrange, Assert, Act
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

test-designaaa-patternnamingunit-testing