Everything related to Java, eXtreme Programming and Software Architecture
20 Sep 2004
Refactoring Unit Tests
I'm currently refactoring some of my unit tests I made when I first started using JUnit framework.
2 things stroke me at first sight:
I make better unit tests now:
I test only usefull thing,
they depend less upon other things (ex: a file present in file system)
they are clearer
Using Unit tests forced me to create new entries in my legacy classes, now unit testing is
easier. I don't have to refactor a class before starting to unit test it.
Post a Comment
Post Comments (Atom)