The human understanding is no dry light, but receives infusion from the will and affections; which proceed sciences which may be called "sciences as one would." For what a man had rather were true he more readily believes. Therefore he rejects difficult things from impatience of research; sober things, because they narrow hope; the deeper things of nature, from superstition; the light of experience, from arrogance and pride; things not commonly believed, out of deference to the opinion of the vulgar. Numberless in short are the ways, and sometimes imperceptible, in which the affections color and infect the understanding.
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
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.
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