Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TDD: The Good Parts

Adam Wathan
November 07, 2014

TDD: The Good Parts

Test-driven development can be hard, and a lot of the “rules” can often become a distraction from the real reasons you're writing tests in the first place.

In this talk, you’ll find out what the real benefits of TDD are, what really makes code “good”, and why testability shouldn’t be your only yardstick for measuring code quality.

I’ll also show you some of the pitfalls of a “purist” testing approach, and give you strategies you can use to test-first without sacrificing simplicity or expressiveness in your code.

If you’ve ever given up on testing because it seemed so hard to do everything “by the book”, this talk will feel like a breath of fresh air and give you the tools you need to start writing tests that really matter.

Adam Wathan

November 07, 2014
Tweet

More Decks by Adam Wathan

Other Decks in Programming

Transcript

  1. When your tests use the same collaborators as your application,

    they always break when they should. 1 Sandi Metz
  2. The great irony of over- isolation is that it actually

    makes you more dependent on implementation. 1 Steve Fenton
  3. If talking to the database is stable and fast then

    there's no reason not to do it in your unit tests. 1 Martin Fowler