Unit testing workshop

Testing pains

Have you ever felt

  • Writing tests takes too long and I don't have time.
  • Every time I change the code, I have to change the tests. 
  • The tests mock so much that they seem useless
  • Anything else?

Goal of these workshops

  • Make testing easier, and save time long term
  • Make tests better, so that tests are less coupled
  • Make tests more useful, so we have more confidence

Pains of not testing

Have you ever felt

  • Refactoring is risky
  • Our methods/classes have too many responsibilities
  • Our releases are often buggy
  • Our code is untestable
  • Anything else?

Goal

  • Make refactoring relaxing
  • Make releases boring
  • Make our code easier to read and maintain

Plan

  • Fundamentals: principles
  • Intermediate: patterns
  • Advanced: testing the untestable

Unit testing workshop

By Tom Dane

Unit testing workshop

  • 313