简体   繁体   中英

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.

NUnit (.NET单元测试软件)的源代码值得一看。

您也许可以掌握Spring Framework源代码,它背后的团队提倡测试驱动开发,并且该框架可用于Java .net。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM