Skip to content

Sk3pper/test-driven-development-by-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 Test-Driven Development by Example

Welcome to the repository for the book Test-Driven Development by Example by Kent Beck. This repo contains a step-by-step walkthrough of the concepts, exercises, and code examples presented in the book.

📝 Related Article

Read article for further details here.

🔄 Process to keep in mind

The TDD cycle is:
  1. Add a little test.
  2. Run all tests and fail.
  3. Make a change.
  4. Run the tests and succeed.
  5. Refactor to remove duplication.

What You'll Find Here

🔧 setup-environment/

A minimal, terminal-based setup guide to help you follow along with the book. This guide walks you through creating a clean development environment to fully focus on TDD fundamentals.

👨‍💻 in-the-money-example/ and xUnit/

These directories contain step-by-step coding examples inspired by the book’s exercises, organized chapter by chapter. Each folder includes:

  • ✅ The final version of the code for that chapter
  • 🧪 Tests you can run yourself
  • 🔍 A clear progression between chapters to observe what changed and why

This structure helps you compare versions and understand the evolution of the code, providing insight into the TDD thought process.

Note: The xUnit/ directory also includes solutions for the following tasks:

These examples demonstrate how to apply Test-Driven Development (TDD) principles in practice—step by step. They also served as a way for me to better understand the entire process and train myself through hands-on exercises.

About

Repository to keep track examples presented in Test-Driven Development by Example book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published