Skip to content

Repository following the book Test-Driven Development by Kent Beck

Notifications You must be signed in to change notification settings

michaelecrippa/TDD

Repository files navigation

Repository following the book Test-Driven Development by Kent Beck.


Part I - The Money Example

Chapter 1 - Multi-Currency Money
Chapter 2 - Degenerate Objects

  • General TDD cycle (The goal is clean code that works)
    • Write a test
    • Make it run
    • Make it right

Chapter 3 - Equality for All
Chapter 4 - Privacy
Chapter 5 - Franc-ly Speaking
Chapter 6 - Equality for all, Redux
Chapter 7 - Apples and Oranges
Chapter 8 - Making Objects
Chapter 9 - Times We're Livin'In
Chapter 10 - Interesting Times
Chapter 11 - The Root of All Evil
Chapter 12 - Addition, Finally
Chapter 13 - Make It
Chapter 14 - Change
Chapter 15 - Mixed Currencies
Chapter 16 - Abstraction, Finally
Chapter 17 - Money Retrospective

  • What's next?
  • Metaphor
  • JUNit usage (some statistics)
  • Code metrics (more statistics)
  • Process
    • Add a litle test
    • Run all tests and fail
    • Make a change
    • Run the tests and success
    • Refactor and remove duplicates
  • Test quality
  • One last review

Part II - The xUnit Example

Chapter 18 - First Steps to xUnit
Chapter 19 - Set the Table
When you begin writing tests, you will discover a common pattern: Arrange -> Act -> Assert
Constraints

  • Performane
  • Isolation

Chapter 20 - Cleaning Up After
Chapter 21 - Counting
Chapter 22 - Dealing with Failure
Chapter 23 - How Suite It Is
Chapter 24 - xUnit Retrospective


Part III - Patterns for TDD

Chapter 25 - TDD Patterns

  • Test
  • Isolated Test
  • Test List
  • Test First
  • Assert First
  • Test Data
  • Evident Data

Chapter 26 - Red Bar Patterns

  • One Step Test
  • Starter Test
  • Explanation Test
  • Learning Test
  • Another Test
  • Regression Test
  • Break
  • Do Over
  • Cheap Desk, Nice Chair

Chapter 27 - Testing Patterns

  • Child Test
  • Mock Objects
  • Self Shunt
  • Log String
  • Crash Test Dummy
  • Broken Test (Broken Check-out)
  • Clean Check-in

Chapter 28 - Green Bar Patterns

  • Fake It
  • Triangulate
  • Obvious Implementation
  • One to Many

Chapter 29 - xUnit Patterns

  • Assertion
  • Fixture
  • External Fixture
  • Test Method
  • Exception Test
  • All Tests

Chapter 30 - Design Patterns

  • Command
  • Value Objects
  • Null Objects
  • Template Methods
  • Pluggable Objects
  • Pluggable Selector
  • Factory Method
  • Imposter
  • Composite
  • Collecting Parameter
  • Singleton

Chapter 31 - Refactoring

  • Reconcile Differences
  • Isolate Change
  • Migrate Data
  • Extract Method
  • Inline Method
  • Extract Interface
  • Move Method
  • Method Object
  • Add Parameter
  • Method Parameter to Constructor Parameter

Chapter 32 - Mastering TDD

About

Repository following the book Test-Driven Development by Kent Beck

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages