Java Unit Testing with open source: JUnit

JUnit is a full featured "Regression Testing Framework" for java. JUnit is open source via the IBM Common Public License. JUnit is good stuff. Checkit via the link.   http://www.junit.org

Comments

Re: Java Unit Testing with open source: JUnit

Does anyone here have any experience with using JUnit or more general automated unit testing?

About two years ago I decided to introduce automated unit testing in a mid-size Java-based project I managed. Unfortunatelly it didn't work out I was forced to drop it.

There where two main problems:
1. devs complained they had to spent lots of their time maintaning the testing code, as every change in the main code required changes in tests.

2. The majority of test failures turned out to be caused by bugs in tests, not in the main code.

I suppose our problem was caused by introducing unit testing too early in the project life cycle when we didn't have well defined APIs yet.

Anyone has different experiences/opinions?

-
Jarek

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.