Posts about Testing

Testing Tip: The Dummy Function

Sometimes when you are writing tests, you find yourself testing whether a particular callback has been called. For example, you might write a test like thisvar lastCalledWithfunction callback(e){ ... more
Posted by Toby on Feb 25, 11
About programming, javascript and testing
1 comments

Parameterizing Your Tests

I useĀ SeleniumĀ at work to write browser tests. I use the Python bindings with Selenium Remote Control to drive the tests. Now, once you have written a test suite, it is not unreasonable to want to... more
Posted by Toby on Mar 11, 09
About programming, testing and python

BDD Style Mocks in Javascript

I was tasked with researching Javascript testing in the browser. Saw this video, whose message is simple: decouple your code to be more testable. This is a testing 1.0 concept put in the context of... more
Posted by Toby on Mar 27, 08
About programming, javascript, testing and mocks

Autotest popup notifications with Snarl

After learning of growl from Micah's post, I decided to port it to the windows equivalent: snarl. It was pretty easy:Follow Micah's instructions except for the growl bitsInstall Snarl from their... more
Posted by Toby on Mar 14, 08
About programming, ruby and testing

Mock Testing and stub everything

This is a follow up to Advantures in Testing with Mocks. I have been growing dissatisfied with the mockist style of testing recently. The reason is, I was trying to learn it, but it just required me... more
Posted by Toby on Dec 28, 07
About programming, ruby, testing and mocks

Adventures in Testing with Mocks

I have recently gotten the mock testing bug. The biggest driving force to do this is that I find some things just too hard to test: in two cases I have to interact with the filesystem, and in another... more
Posted by Toby on Sep 28, 07
About programming and testing