Open source projects with good quality tests [closed]

醉酒当歌 提交于 2019-12-20 03:20:37

问题


I know there is a thread about open source projects with good code quality, but which projects have unit tests (With mocking) and are of a high quality?

Many Thanks


回答1:


ASP .NET MVC source contains extensive unit tests that uses Moq for mocking.




回答2:


Most of them do have unit tests.

For example, I consider NHibernate and the Castle project the most prominent ones. (Although I haven't examined Castle's code more closely yet, I know NHibernate has very nice unit tests.)

You can pull the source code from a public repository for both of them.

EDIT: SubText also had nice unit tests when I last checked.




回答3:


Gallio is an OSS automation plateform for unit testing. Interestingly enough, it uses its own testing framework (MbUnit) to run its unit tests during the build process. It's an interesting form of dog fooding.

While unit tests make a moderate usage of mocking (with Rhino.Mocks), they stress all the possible features of the test framework. You way want to have a look at the code here.



来源:https://stackoverflow.com/questions/2893841/open-source-projects-with-good-quality-tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!