The team that wrote perfect code
A while back I was brought in to teach TDD to a team. I started the way I usually do, by explaining that TDD is a quality activity, not a testing activity. The goal is higher quality, both in the design and in the actual code and the tests are largely just a side-effect, albeit a very useful one.
Test driving prime factors in Go / Testify
Test driving prime factors in Java / JUnit
Test driving prime factors in Elixir / ESpec
Test driving prime factors in Ruby / RSpec
Test Driven Development (TDD): A design activity
Test Driven Development (TDD) is often though of as a testing activity but it really isn’t. It’s a design activity that leaves a bunch of automated tests behind in its wake. It may sound as if we’re spending a lot of time on “tests” but we’re really focusing on the behaviour we want and allowing that behaviour to drive the design of our system.