Reputation: 16380
I am looking for an open source Java project containing two reasonably complete test suites: a suite of integration tests and a suite of unit tests, for the same code.
Note that I am only interested in developer tests, written with JUnit or TestNG.
I ask this because I often see people saying that having both unit and integration tests is necessary. But so far I don't know of any codebase with both kinds of test coverage.
Does anyone know of any such project?
Upvotes: 1
Views: 2137
Reputation: 16438
Have a look at tapestry web-framework. from code-quality perspective one of the best pieces of code i have seen! it uses both unit-tests and integration-tests (selenium driven). they are nicely integrated with maven so you can just run them locally. i would have preferred canoo-webtest (browser independent), but the suites are nice.
but you are right, all a mandating (automated) unit+integration tests, but you hardly see it in practice... though it really pays off!
Upvotes: 2
Reputation: 4503
CruiseControl has both unit tests and functional tests. Most (all?) of the functional tests are for the newest component, the Dashboard. But if you restrict what you're looking at to just that component you'll find both unit tests and functional tests.
Upvotes: 0
Reputation: 141
FitNess should have both. I know that fitness has a very high test coverage and takes pride in clean code. I`m not completely sure if there are integration tests, but since fitNess is an acceptance test framework they probably have every kind of test type in place.
You`ll find the source here http://fitnesse.org/ under download
Upvotes: 1