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...
> 
> 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.
> 
> I can solve this offcourse by adding a TCompatTestCase which implement
> the AssertEquals functions by a simple call to the TestEquals
> counterpart. But maybe we can add the 'testequals' variant to fpcunit,
> to be dunit compatible?
> 
> Or does anyone have some other ideas?
yes, good news: as soon as I wrote fpcunit I backported it to Delphi 6
and later. The need arose when the InstantObjects programmers needed a
tool that would enable them to use it under both compilers to ease a
future port of the InstantObjects OPF to FPC. They use it extensively
for the tests of the framework
http://svn.sourceforge.net/viewcvs.cgi/instantobjects/trunk/Source/Tests/

.
The port is available here, posted by Uberto Barbini who offered to
maintain it:
 http://sourceforge.net/projects/ubmock/
I've seen some patches on the IO newsgroup to make it work on D5.
I think the latest additions in fpcunit are missing (TTestSetup), but
you can simply copy the fpc code because is very simple.
I see no reason to use dunit with delphi and fpcunit with fpc, if
fpcunit lacks some functionality compared with dunit let me know and
we'll add it in fpcunit.
I've already started some work to provide new features to fpcunit as
suggested by the users.
Ciao, Dean






_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to