Home » Archive

Articles tagged with: testing

design »

[25 Jul 2007 | Comments Off on Don’t mercilessly refactor unit tests! | ]

I teach TDD courses, and one of the questions that inevitably pops up is whether you should refactor your tests. When it comes to eliminating duplication in tests, my threshold is very high. By that, I mean that the most important thing to me is readability. I want to read a test like a mini story: I set this up, I execute this, I verify that.
One of the biggest annoyances I encounter with experienced TDDers is when they decompose tests to the point where you can’t see what the …

process, tools »

[11 Aug 2006 | One Comment | ]

Marcus Ahnve recently wrote about why he doesn’t like FIT.
Here are my thoughts:
When I first started doing customer specified integration (“story”) testing on enterprise Java projects, JUnit was the tool choice. It was just as simple to program and maintain integration tests as it was to write and maintain unit tests. Because the developers were responsible for translating the test plans into their executable form, it was an obvious and simple choice. It enabled us to run a debugger when we needed to, the tests ran fast, and we didn’t …