BDNradio: Unit Testing in Delphi 2005 with Mark Edington

By: John Kaster

Abstract: Listen to the replay and read the chat room log of Mark Edington's live chat on unit testing support in Delphi 2005

Mark Edington on Unit Testing in Delphi 2005

Listen to the audio replay.

This is a log of the chat room during the live audio chat from December 14, 2004 on Delphi 2005 with Mark Edington. Mark discusses unit testing support in Delphi 2005.

Note: This log is only the chat room transcript. There is much additional information covered in the audio replay that is not available in this chat log. For all previous and upcoming live chats, see http://bdntv.borland.com/chat.html.

VIP Lounge

jkaster inserts the following link: http://bdn.borland.com/article/0,1410,32846,00.html
jkaster: This BDNtv episode shows the unit testing integration for DUnit for a Delphi/Win32 application in Delphi 2005.

jkaster: aohlsson: "Can I easily change a GUI test project to be a console test project?" - Basically, it just comes down to the uses clause of the test project. You can change that. DUnit puts an $IFDEF in the project and conditional defines for console. You don't have to change any of the other code.

jkaster: aohlsson: "What if I add methods to my class? Do I have to create the test case from scratch?" - we do support updating unit tests although the UI doesn't make that obvious.

jkaster: aohlsson: "How easy is it to switch a DUnit test project to NUnit and vice versa?" - If you're using Delphi for Win32, you can only use DUnit. If you're using C#, you can only use NUnit. DUnit is specific to Delphi. Delphi for .NET gives you the choice of either DUnit or NUnit. We did work with the DUnit folks to get it working for .NET. The syntax is not the same for the methods you cal to verify your unit tests.

jkaster: jkaster: "If I'm doing both Delphi for .NET and C# coding, will the unit testing interface and wizards for NUnit look different when I switch source projects?" - No. The wizard interface always looks the same regardless of which language and which framework.

jkaster: aohlsson: "How does unit testing help me to follow "Test First"?" - Unit testing came out of Extreme Programming, and test-driven development. I think that's a great way to develop software.

jkaster: JoeH: "how do you set up unit testing that needs a connection, such as an asp.net or cs database app ?" - You would use the Setup and Teardown methods to manage your connections. We'd like feedback on suggestions for creating helper classes for unit testing things like this.

jkaster: Serge_d: "Do you plan to go further and support Module and Macro testing, not just inline testing provided by D/NUnit" - We are definitely interested in extending unit testing. Please provide feedback to us on the ide.general newsgroup, email me (Mark), or put requests in QualityCentral

jkaster inserts the following link: http://qc.borland.com
jkaster: QualityCentral home page

jkaster: Serge_d: "Comment: Unit testing allows to do Test Level 1, but does not provide support for QA process where design time environment is not available - after deployment testing..." - I spoke to that a little bit earlier. It is a piece of the whole testing strategy.

jkaster inserts the following link: http://blogs.borland.com/medington/
jkaster: Mark's blog

Public chat

Welcome to the moderated Borland Community Chat!
You are allowed to speak freely with everyone in this lower window. In the upper window you'll find all messages written by moderators and invited speakers.

Serge_d: Please say BIG THANK to Karen for detailed info about upcoming chats!!!
JoeH: yes, thanks Karen!
domus: There goes one eardrum
bmcgee: Separation of UI and business logic? You're making some assumptions there! :)
JoeH: that would be awesome to have a failed test jump to the line of code !
jthurman: Interesting stuff. Thanks!
JoeH: thanks!
bmcgee: Thanks guys. Integrated unit testing is one of the really useful features in D2005. Looking forward to more.
DonS: thx guys.
bmcgee: And tell Mark to update his blog!


Server Response from: ETNASC02