Sorry, this video is for subscribers only.

Click here to subscribe!

Unit Test Strategies, Mock Objects, and Raphaël

It’s easy to test pure functions and stateful objects. But testing functions with side effects is much harder. We look at three strategies for testing side effects: Asking; Inspecting; and Injecting. We demonstrate the strategies with Raphaël, the vector graphics library, and discuss when to use each one.

  1. LL7Unit Testing DOM Manipulation Code

    Fri, 9 Nov ’12
  2. LL8Automatopia

    Fri, 30 Nov ’12
  3. LL11Front-End Unit Testing in a Nutshell

    Fri, 3 May ’13
  4. E41Seeking the DOM

    Wed, 24 Oct ’12
  5. E42There’s Our Tag

    Mon, 29 Oct ’12
  6. E43Keep Layout and Program Separate

    Wed, 31 Oct ’12
  7. E44Raphaël

    Mon, 5 Nov ’12
  8. E45IE 8 Compatibility

    Wed, 7 Nov ’12
  9. E46Clean Up the DOM

    Mon, 12 Nov ’12
  10. E47Element-ary

    Wed, 14 Nov ’12
  11. E48Test It For Real

    Mon, 19 Nov ’12
  12. E49Find the Path

    Wed, 21 Nov ’12
  13. E50Damn Near Impossible

    Mon, 26 Nov ’12