After installing FinalBuilder for the first time, I looked through the list of actions to see what 3rd party tools were supported. I was pleasantly surprised to see an action for every tool I use in software development except one, DUnit. I thought this was odd but I soon realized that DUnit is supported, just not as a custom action.

Follow these steps to use DUnit in FinalBuilder:

1) Add a Compile Delphi Win32 Project action to your FinalBuilder project.
2) Point the Compile Delphi action to your DUnit project and configure it as needed to compile the project.
3) Add an Execute Program action to the FinalBuilder project. This action is found under the Windows OS action group.
4) Point the action to the compiled bits from the Compile Delphi action. In other words, point it to your DUnit program.
5) Mark the Log Output option, which should be marked by default.

That's it. FinalBuilder will run your DUnit unit tests as part of the build process and the output from the tests will be captured by FinalBuilder. And of course you can configure the FinalBuilder project to act accordingly based on the pass/fail result of your unit tests.

Some people might think FinalBuilder should have a custom action for DUnit. However, the action would only be a direct copy of the Execute Program action. Or maybe it would combine the Compile Delphi and Execute Program actions into a single action. But as you can see a custom action is not needed. DUnit unit tests are support through the Execute Program action and a custom action specific to DUnit would just be a waste of time for the folks at Vsoft Technologies. Their time is better spent adding support for more tools and adding more features to an already great product,
FinalBuilder.

posted by Kirby | 16-Jan-2006 12:10 PM | comments (1)


thanks for the useful article. I found that you have to compile the dunit project with TextTestRunner instead of GUITestRunner other wise the gui will load and the tests wont be automated. Cheers.

posted by Ben Russell | June 3 03:04 AM

Add Your Comment

Comment:
(No HTML)

Name:
E-mail/Web site:
Your e-mail/web site will not be published on this site. It is optional and will only be used by me should I need to contact you directly.
 
By checking this option, this site will remember your name and e-mail/web site on future visits. Uncheck this option to have the site not remember who you are on future visits.
 
Enter the code shown above:
Copyright © 1999-2008 Kirby Turner.
Site software written by White Peak Software Inc, a provider of custom software and software development coaching.