First Move (11~18) - Code, Learn, Build
🧭 Career CompassDashboardProgress
Loading...
First Move (11~18) - Code, Learn, Build

Structured, level-based technology learning paths from foundational exploration to industry mastery.

Learning Domains

  • Python Programming (Active)
  • Computer Science Core
  • Web Development
  • AI & Machine Learning

Platform Architecture

  • Level-Based Progression
  • Decoupled Content Schema
  • Modular Code Execution Engine
  • Curated Official Resources

© 2026 First Move (11~18) • CODE • LEARN • BUILD. Built with Next.js App Router.

Readability & Accessibility First

← Software Testing & Quality Assurance|Level 1: Automated Unit Testing & TDD Principles

2. Test-Driven Development (TDD): Red-Green-Refactor

Lesson 2 of 6
Saved Locally (Guest)
Progress
0%

Test-Driven Development (TDD): Red-Green-Refactor

Master TDD methodology by writing failing tests first (Red), implementing minimal passing code (Green), and optimizing design (Refactor).

The Red-Green-Refactor Cycle

### TDD Execution Cycle - 🔴 **RED**: Write a failing unit test for a feature before writing production code. - 🟢 **GREEN**: Write the minimal simplest code necessary to make the test pass. - 🔵 **REFACTOR**: Clean up code structure, eliminate duplication, and improve variable naming while keeping tests passing.
💻 Ready to test your knowledge with code?
Solve the hands-on coding exercise in the interactive code editor.