DUnit

From HandWiki
Revision as of 08:09, 27 June 2023 by Steve2012 (talk | contribs) (change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DUnit is an automated unit testing framework for Embarcadero Delphi and C++Builder.[1] DUnit allows Delphi (Object Pascal) and C++Builder developers to use test-driven development.

DUnit's original code was written by Juanco Añez[2] and is based on JUnit by Kent Beck and Erich Gamma. Several developers now maintain DUnit as a project on SourceForge.

DUnit became a standard part of Delphi starting with Delphi 2005. Two key files provide most of the test framework functionality: TestFramework.pas and GUITestRunner.pas.

DUnit extensions

PascalMock provide an extension to DUnit with the class TMockObjectTestCase which allow to easily use Mock object in unit tests.

TestGrip uses DUnit to create and maintain unit tests as an extension of the Delphi IDE

TestInsight provides a tight IDE integration where tests are automatically run in background after code changes/compiles.

References

External links