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?
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!