Re: [lazarus] JUnit and Delphi

2006-05-12 Thread Dean Zobec
Graeme Geldenhuys wrote: >> > I suppose I could make those changes again and submit a patch. >> > >> Yes, it's a good idea, please create a patch and I'll review it. > > fpcUnit relates more the FPC than Lazarus. Do you read the FPC > mailing list? I can post the patch in there, otherwise I can

Re: [lazarus] JUnit and Delphi

2006-05-11 Thread Graeme Geldenhuys
On 10/05/06, Dean Zobec <[EMAIL PROTECTED]> wrote: > I suppose I could make those changes again and submit a patch. > Yes, it's a good idea, please create a patch and I'll review it. fpcUnit relates more the FPC than Lazarus. Do you read the FPC mailing list? I can post the patch in there, ot

Re: [lazarus] JUnit and Delphi

2006-05-10 Thread Dean Zobec
Graeme Geldenhuys wrote: >> Yes, I've seen the tests in the tiOPF svn repository. >> I think it's a good idea to add this compatibility code to fpcunit with >> a little improvement: I would declare the CheckEquals methods as class >> methods, to be able to use them outside the TTestCase class. > >

Re: [lazarus] JUnit and Delphi

2006-05-10 Thread Graeme Geldenhuys
On 09/05/06, Dean Zobec <[EMAIL PROTECTED]> wrote: Yes, I've seen the tests in the tiOPF svn repository. I think it's a good idea to add this compatibility code to fpcunit with a little improvement: I would declare the CheckEquals methods as class methods, to be able to use them outside the TTest

Re: [lazarus] JUnit and Delphi

2006-05-09 Thread Dean Zobec
Mattias Gaertner wrote: > On Tue, 09 May 2006 20:14:30 +0200 > Dean Zobec <[EMAIL PROTECTED]> wrote: > >> Mattias Gaertner wrote: >> Then I'm investigating about a way to add the possibility to automatically create the stubs for the tests as in Eclipse, through a parsing of the unit

Re: [lazarus] JUnit and Delphi

2006-05-09 Thread Mattias Gaertner
On Tue, 09 May 2006 20:14:30 +0200 Dean Zobec <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > >> Then I'm investigating about a way to add the possibility to > >> automatically create the stubs for the tests as in Eclipse, through a > >> parsing of the unit containing the classes to be t

Re: [lazarus] JUnit and Delphi

2006-05-09 Thread Dean Zobec
Mattias Gaertner wrote: >> Then I'm investigating about a way to add the possibility to >> automatically create the stubs for the tests as in Eclipse, through a >> parsing of the unit containing the classes to be tested. >> I would also like to improve the integration in Lazarus. I'm absolutely >>

Re: [lazarus] JUnit and Delphi

2006-05-09 Thread Mattias Gaertner
On Tue, 09 May 2006 18:54:38 +0200 Dean Zobec <[EMAIL PROTECTED]> wrote: > Graeme Geldenhuys wrote: > >> I've already started some work to provide new features to fpcunit as > >> suggested by the users. > >> Ciao, Dean > > > > > > Oh please do tell!! :-) > > > > Regards, > > - Graeme - > Main

Re: [lazarus] JUnit and Delphi

2006-05-09 Thread Dean Zobec
Graeme Geldenhuys wrote: >> I've already started some work to provide new features to fpcunit as >> suggested by the users. >> Ciao, Dean > > > Oh please do tell!! :-) > > Regards, > - Graeme - Mainly your suggestions Graeme, after all you are the one who makes the heaviest use of fpcunit, you

Re: [lazarus] JUnit and Delphi

2006-05-09 Thread Dean Zobec
Graeme Geldenhuys wrote: >> On fpc I used fpcunit, and I tried to use DUnit with Delphi. That works, >> but the problem is that where fpcunit uses 'assertequals(prop1,prop2)' >> dunit uses 'testequals(prop1,prop2)' >> >> So that I'm still unable to write a test only once, and test it with >> both c

Re: [lazarus] JUnit and Delphi

2006-05-09 Thread Graeme Geldenhuys
On 08/05/06, Dean Zobec <[EMAIL PROTECTED]> wrote: I've already started some work to provide new features to fpcunit as suggested by the users. Ciao, Dean Oh please do tell!! :-) Regards, - Graeme - -- There's no place like 127.0.0.1

Re: [lazarus] JUnit and Delphi

2006-05-09 Thread Graeme Geldenhuys
On fpc I used fpcunit, and I tried to use DUnit with Delphi. That works, but the problem is that where fpcunit uses 'assertequals(prop1,prop2)' dunit uses 'testequals(prop1,prop2)' So that I'm still unable to write a test only once, and test it with both compilers. For tiOPF we use DUnit under

Re: [lazarus] JUnit and Delphi

2006-05-08 Thread Dean Zobec
Joost van der Sluis wrote: > Hi all, > > I'm writing a DB-test-framework. And it looks very promising. > > I only wanted to make it runnable with Delphi and FPC. To obtain a good > mechanism to check for differences. It can be used for example to check > which events are fired on some actions...

Re: [lazarus] JUnit and Delphi

2006-05-08 Thread Joost van der Sluis
Hi all, I've ported fpcunit to Delphi. That was easier. Only thing is that I don't have a GUI-version for Delphi now. But for the tests that doesn't matter, really. ps: I meant 'checkequals' instead of 'testequals' On Mon, 2006-05-08 at 16:00 +0200, Joost van der Sluis wrote: > Hi all, > > I'm

[lazarus] JUnit and Delphi

2006-05-08 Thread Joost van der Sluis
Hi all, I'm writing a DB-test-framework. And it looks very promising. I only wanted to make it runnable with Delphi and FPC. To obtain a good mechanism to check for differences. It can be used for example to check which events are fired on some actions... On fpc I used fpcunit, and I tried to us