Blog Archives

Stop fixing it already…

Over in Fix it twice? I discussed why a second attempt at fixing an issue, to use hindsight of an actual fix as a way to improve the software, was a great idea. In this piece, I’d like to discuss the aim

Posted in Uncategorized

Fix it twice?

One of the many catchphrases I use with my team is Fix it twice. This refers more to the Red – Green – Refactor cycle. For clarity, that’s usually used during TDD where you go Red – a failing test. Then you do whatever

Posted in Uncategorized

Obvious Mistakes

As a team leader who also writes code I have to worry about code several times over. The coding standards we adhere to – they must be disciplined but not overbearing or pernickety Every line of code the team writes

Posted in Uncategorized

How to make your Unit Tests harder

This is written about JUnit in Java, but much of this applies to other test frameworks. I’m going to tell you a bunch of ways to screw up your tests. You can probably guess how to write better ones –

Posted in Uncategorized

How to Learn a Language

I received some marketing email relating to a Java programming course from JavaCodeGeeks.com. The email contained this (probably made up) horror story. so I’ve been learning java for over 3 years. and I’ve given up due to feelings over sadness

Posted in Uncategorized

A SureFire Classpath Fail!

Sadly, even the best plugins can work against you. We’ve been having a problem recently with Spring, Maven and SureFire. Specifically, it seemed that some of our unit tests ran absolutely fine with Spring and properties files when run via

Posted in Uncategorized

When you want to disable a slow running test

A quick one. The code for this is here on GitHub. When testing your software with automated unit tests, you want to be thorough to get code coverage and genuinely cover system behaviour, yet some of the things you want

Tagged with: , ,
Posted in Uncategorized