The No.1 i-Technology Magazine in the World !
   
 
Clint Shank's Blog

Testing



Law of Demeter and Unit Test Setup

30 Nov 2007 8:23 P GMT-05
Have you ever seen or even developed a long, complex setup method in JUnit? Maybe it was because the production code was violating the Law of Demeter. Here's another Robert Martin Craftsman style entry.

Parallel JUnit Ant Task

16 Oct 2007 10:41 A GMT-05
Over time, how do you maintain a maximum 10 minute build? This is an important agile practice for continuous integration. This entry describes an Ant task designed to run standard JUnit tests concurrently.

The todo Test Category

26 Jan 2007 9:33 A GMT-05
Should a failing unit test break the build? Elliotte Rusty Harold recently discussed why he doesn't think so. Ever heard of test categorization? Well, there's a new test category in town - the todo test category[...]

Behavior Driven Development with JUnit 4

14 Dec 2006 5:54 P GMT-05
JUnit 4 makes Behavior Driven Development (BDD) easier...

Testing Private Methods

18 Nov 2006 10:37 A GMT-05
There are some practical reasons for testing private methods (and inspecting private fields on occasion). This entry discusses these reasons and why using reflection instead of just changing the access scope of the method itself is the way to go.

Comments on The Danger of Mock Objects

24 Sep 2006 11:13 A GMT-05
Rarely do I disagree with Uncle Bob. I’ve learned a lot from reading his writings over the years. He recently blogged about mock objects in response to a blog from Cedric Beust...

Checklist for Finding Test Cases

4 Jun 2006 10:19 A GMT-05
Suppose I'm focused on specifying the behavior of a particular method. How do I know if I've specified everything? I'd like to share a checklist of things I think about to help accomplish this...

Test Smell: Test Breaks After Good Refactoring

17 Mar 2006 4:53 P GMT-05
What does it mean when you perform a correct refactoring, but your tests break? This blog entry describes some decoupling tips to deodorize this code (or test) smell.

A Common Set of Test Refactorings

19 Feb 2006 8:02 A GMT-05
A set of low level Eclipse refactorings commonly used together when refactoring unit tests.

TDD Pattern: Tabular Tests

5 Feb 2006 2:23 P GMT-05
This entry discusses a controversial, yet practical technique for refactoring test methods into a concise specification of test cases for a production class method.