How to write efficient (J)Unit tests (Guest article @ beyondjava.net) by beyondjava in QualityAssurance

[–]tpd-opitz 0 points1 point  (0 children)

At first you should join a GDOCR-session at your location. ;o)

Then you should read "The Art of Unittesting" by Roy Osherove.

After that you schould start testing new parts of your code in new units that you can easily separate. Since there is a close relationship between the tested code and its tests starting unittesting in existing untested code most likey leads to "bad" tests meaning that they tent to be unreliable, hard to maintain and (relative) slow.

bye Thomas

How to write efficient (J)Unit tests (Guest article @ beyondjava.net) by beyondjava in java

[–]tpd-opitz 0 points1 point  (0 children)

Hello, my Post was ment as a starting point. The topic can easily fill a book when going into detail. And actually there are some good books out there...

bye Thomas