Sunday, July 27, 2008

Great Unittesting article

I saw a great article on "App Engine Guy's" blog. He uses in-memory stubs for the datastore to write very concise unit tests. Check it out -- it's worth a read. Btw: if you find certain APIs (like memcache) missing from his example -- they are stubbed out in exactly the same manner!

If you are interested in other techniques to unit test, you might also want to check out

  • GAEUnit, a framework to turn unit tests into browser-callable handlers.
  • pymox, another mocking framework alternative to the python mocker I have been using.
  • nose-gae, a Nose-plugin that adds app engine support. Personally, I have had some trouble with the tool, but that might very well just have been me...

0 comments: