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.

Answers


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

exe started with CreateProcessAsUser randomly crashes on start

c# .net windows-services createprocessasuser

Here is the situation : I have a C# .NET Windows service (run as localsystem) that starts a satellite C# .NET executable (windowless WinForms) under the current logged in user account, using