Which opensource java or .net project has best unit test coverage?

I want to dive more into the unit testing concepts. An open source project which will illustrate the best practices in unit testing is required.


I work on CruiseControl (original Java version) and I think it is worth considering as a source of study for a few reasons:

  1. Lots of unit tests. Certainly not the highest coverage but there are plenty to look at.
  2. Diverse technology. There are pojos, tag libs, velocity macros, spring, etc.
  3. Uneven quality of unit tests. Because we take contributions from outside the quality and throughness of unit tests vary. The core classes are very well tested. Lots of the contributions are untested or poorly tested. Consider the poorly tested ones as "an exercise left for the reader". ;)
  4. Maybe the best reason: You can ask questions about the tests on developer mailing list. In the best case you could even end up writing tests for some of the untested areas and get coaching on your efforts.

The source code for NUnit (.NET unit testing software) would be worth a look.

You might be able to get hold of the Spring Framework source code, the team behind it advocates test driven development and the framework is available for both Java .net.

Need Your Help

does size of int matter? sudoku optimization

java arrays optimization binary int

I am trying to optimize an algorithm (Sudoku) in Java for a class and I'd like to know the following:

Passing arguments with changing values to Task -- Behaviour?

c# .net-4.0 scope task-parallel-library

Scenario: An asynchronous task in a loop executes a method containing arguments that change as the program continues: