unittesting 101

December 15th, 2005

Feasible for unit testing:

  • simple methods whose output is easy to process (verify addNumbers(2, 2) gives 4)

Problematic scenarios:

  • methods which output complex data (html, xml etc)
  • methods which modify the state of the filesystem
  • methods which make calls to outside binaries
:: random entries in this category ::

2 Responses to "unittesting 101"

  1. erik says:

    *Sits on the sofa with a spoon in a bucket of Ben & Jerry's with additional cookie crumbles all over his pyjama shirt as he watches Oprah*

    "So... How are you then?"

  2. numerodix says:

    That is a beautiful picture you painted, Oprah rocks. Well, sometimes.