Archive for testing

Case Study: Refactoring Interfaces with TDDed Tests

Tags: , , , ,

I’ve been practicing TDD for a couple of years now, and keep learning all the time.
In the past year I’ve been mainly working on a single project, the longest I’ve worked on a project with TDD. Putting aside how fun it is (TDD saved me quite a few times for me to be sure it’s [...]

Continue reading » 1 Comment

Python (nose) Test Coverage on Buildbot

Tags: , , ,

Once we got our builds happily running on Buildbot, there’s really no reason not to add coverage since it’s so easy (especially if you get bragging rights over your non-TDDers teammates).
All you have to do is this (code is based on this blog post, with adaptations to work on slaves that don’t share directories with [...]

Continue reading » No comments

nose doesn’t discover tests on Solaris

Note: this is a technical post, to help poor souls that google this
When using nose on Solaris machines, simply running nosetests without specifying the file names will not work if you are the root user. To fix this, you must either not be root, or pass nose the argument –exe. That’s it.
Gory details: [...]

Continue reading » 1 Comment