From: <jua...@ca...> - 2002-07-09 06:40:52
|
Petr, Nasty bugs! You seem to have dived deep into the DUnit sources. Why don't I give you access to the DUnit CVS repository and you apply these and future patches yourself? Just give me your Source Forge ID, and I'll set you up. You can ask any questions about your computer's setup here or at the dev list. Regards, Juanco > -----Original Message----- > From: dun...@li... > [mailto:dun...@li...] On Behalf > Of Petr Kozelka > Sent: Sunday, June 30, 2002 3:47 PM > To: Dun...@li... > Subject: [Dunit-interest] QGUITestRunner and object comparison > > > Hello all, > > I just started to use QGUITestRunner and found that > a) it's not compilable, because the interface ITestListener > is not completely implemented (missing method: ShouldRunTest) > b) method TestToNode contains incorrect comparison of two > object via their interfaces. The *only* correct way to > compare two objects available via interfaces is, to cast both > sides to IUnknown, and compare the results. This is > explicitly stated in the COM specification which is the base > of Delphi interface model. > c) similar bug was at the same place in GUITestRunner.pas file > > Solution for all these issues is in the attached patch, could > someone please examine and apply it ? > > a) I added method ShouldRunTest with the simplest > implementation - always return true - because there is not > the necessary FSelectedTests field in this unit. I would like > to ask someone more competent to add the code related to > FSelectedTests there > b,c) I corrected the comparison > > After these changes, I have run the TListTest example with > correct results. > > Hope this helps with CLX unittesting ;-) > Petr > > |