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
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
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
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
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
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