Looking for open source Delphi project with good unit test coverage [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this questionFor educational reasons I am looking for an open source Delphi project with good unit test coverage. Projects wh开发者_开发百科ich are under Test Driven Development are preferred. The size of the project doesn't matter.
Subject should be business or game development, but no web projects.
Any hints?
Edit:
Thanks for the suggestions, but I prefer projects where the requests come from "normal" users, not from programmers like for a CRM or ERP system. For example, a task planner or jump-and-run game. Has anybody seen something like this?
Take a look at DeHL. It makes heavy use of generics, and the author has an extensive test suite to make sure that the collections will work properly and not break the compiler.
We tried to implement test driven development for all root classes of our ORM Framework.
All low-level (numerical or UTF-8 text conversion) and high-level features (RTTI, ORM, JSON, database, client/server) were tested before their implementation.
We even made some basic regression tests about the encryption or pdf generation part.
And the tests were then inserted into the main documentation of some medical project (to follow the IEC 62304 requirements). Every release triggered more than 1,000,000 unitary tests. Then manual tests (human-driven on real hardware with working robotic workstations) were performed. Those high-level tests were written using the same documentation tool, which generated a cross-reference matrix to track that all tests passed before any release.
Perhaps not a perfect match, but at least a real use case, in a real world Delphi application, developed for the medical area (and if you know about FDA regulation, you know what I mean). :)
See this article in our forum.
Delphiwebscript boasts about their coverage: http://code.google.com/p/dwscript/
I recommend DeHL.
From its introduction page:
DeHL is an abbreviation that stands for Delphi Helper Library. DeHL is a library which makes use of the newly introduced features in Delphi 2009; features like Generics and Anonymous Methods. It tries to fill in the gaps in the Delphi RTL by providing what most developers already have in other development platforms.
IIRC tiopf has a large testsuite.
Free Pascal maybe even has a larger one, but it depends if that can be regarded Delphi enough for your purposes (3860 tests that pretty much pinpoint "Delphi, the language"). They have their own unit testing framework "fpcunit"
I can recommend JediCodeFormat & DelphiCodeToDoc.
Both are open source projects with many automated tests build with DUnit framework.
I think instantobjects is good place to study. This is one of the best OPF in delphi.It also contains unit test built with DUnit
OmniThreadLibrary also has a lot of tests http://otl.17slon.com/index.htm
精彩评论