I've looked at DUnit and JUnit before, but never really spent enough time to get fully to grips with them.
I'm currently doing a bit of .NET work, and have just spent a reasonable amount of time with NUnit, and it's really paid off. I've now got about 55 to 60 tests testing about 20 classes, and it's made me a lot more confident about refactoring my code. It also makes it easier for me to verify bugs reported by clients - write a test to verify bug, refactor/fix to make the test pass. If/when I go back to doing Delphi stuff, I'll be keen to try DUnit again. However, it made sense for me to insulate myself from things like database connections, by the use of interfaces, which made it easy to stub out database and COM+ server connections, which makes the testing faster and more focussed. Dunno if that's any use in answering the original question... Cheers, Conor -----Original Message----- From: Chris Reynolds [mailto:[EMAIL PROTECTED] On Fri, 4 Apr 2003 14:39:35 +1200, Allan, Samuel <[EMAIL PROTECTED]> wrote: > My organisation is thinking about introducing automated unit testing, > something that some of us are very keen for. I would like to know about > any good tools for doing this. > > Specifically, we want to test our business logic on an ASTA server, and > we would like to be able to test database side effects. > > I was hoping that someone could point me in the right direction. TestComplete from http://www.automatedqa.com is US$350 and is really excellent. It allows you to do keystroke/mouse testing and well as XP style unit testing. DUNIT from http://dunit.sourceforge.net is a free open source project for XP style unit testing. I tried to get myself using DUNIT for three consecutive projects but it always became too much effort for too little benefit. Having finally succumbed to shelling out US$350 for a testing tool, I find it infinitely better than Rational Robot that I've used at a client and costs megabucks. Because TestComplete is so easy to use, I find myself spending 15-30 minutes a day willingly writing and debugging test scripts. It can even record your tests in DelphiScript to your brain doesn't have to adjust. To do database comparisons, you use the built in BDE or ADO objects. If you compile the probe into your application it can read the RTTI and interrogate your objects. --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
