The Open Component Test Framework (OpenCTF) is a test case generator framework for Delphi VCL applications, which creates DUnit tests at run time. The new version 1.6.0 is a maintenance release and is now available on GitHub at https://github.com/michaelJustin/openctf Example project [sourcecode lang="Delphi"] program FormTests; uses OpenCTF, ctfStandardTests, GUITestRunner, TestForm in 'TestForm.pas' {Form1}; begin OpenCTF.RegisterFormClasses([TForm1]); … Continue reading OpenCTF 1.6.0 component test framework released
How can I disable DUnit tests programmatically?
For integration tests of Habari ActiveMQ Client libraries, I created a DUnit test suite which runs once for every version of the message broker. Unfortunately, some of the tests always fail because of known bugs in the tested version of the message broker (not the client library). This means the test suites will never complete … Continue reading How can I disable DUnit tests programmatically?
New Code Coverage Report Tool for Delphi
Delphi Code Coverage is a tool by Christer Fahlgrren which generates HTML reports for "line coverage" of Delphi applications. This project was inspired by great tools in the Java world such as Emma. Download The source code and binary is available online at http://code.google.com/p/delphi-code-coverage/ Output For each unit there will be a unit.html with a … Continue reading New Code Coverage Report Tool for Delphi
Why 1.99 suddenly no longer equals 1.99
A strange problem suddenly occurs in all my Delphi 7 and Delphi 2009 unit tests. I used DUnit CheckEquals to compare two Currency values, like [sourcecode language="pascal"] CheckEquals(1.99, SomeCurrencyValue) [/sourcecode] This worked fine in the IDE and in our build scripts, which run using the same version of DUnit for two years. Now, all of … Continue reading Why 1.99 suddenly no longer equals 1.99
Delphi tool box: a starter kit
Tests First things first: unit tests. Before you start to write a program, think about testing. Download DUnit if it is not already included in your version of Delphi. DUnit is Open Source. New versions of DUnit include automatic memory leak detection for all test cases, using FastMM4. DUnit GUI test runner There are also … Continue reading Delphi tool box: a starter kit