What We’ve Learned So Far

Well done, amigo. You made it. You slogged through the building of an RPN style calculator, and you got to experience what it feels like to write tests first. The only thing holding you back now is practice. Lots of practice.

TDD doesn’t come naturally to folks. At least not at first. But once you get that you have the ability to create anything you want, and codify it in the form of a test, that’s powerful stuff. And this technique will serve you well for all your programming days.

Here’s what we saw in this chapter:

  • Writing tests first is as much about design as it is about testing.

  • You always start with a failing test, and then make it pass and refactor from there.

  • TDD is a great place to go to if you’re ever feeling ...

Get The Way of the Web Tester now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.