This is the second part of my unit testing advice. See the first part on this blog. If you need any introduction you should really read the first part. I’ll just present the other three ideas I wanted to cover. Focusing on common cases This consists of testing only/mostly common cases. These tests rarely fail [...]
Posts tagged unit
Unit testing advice for seasoned hackers (1/2)
When reviewing tests written by other people I see patterns in the improvements I would make. As I realise that these “mistakes” are also made by experienced hackers, I thought it would be useful to write about them. The extra push to write about this now was having concrete examples from my recent involvement in Tor, [...]
Feeling the pressure produces better code?
The other day I was in a conversation with some developer that was complaining about some feature. He claimed that it was too complex and that it had led to tons of bugs. In the middle of the conversation, the developer said that the feature had been so buggy that he ended up writing a [...]

Posts