Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Graeme Geldenhuys
On 5/21/07, Dean Zobec <[EMAIL PROTECTED]> wrote: creating other suites and building the tree. So your unit is very handy for this and spares some typing. Yeah, I have now grouped the tiOPF tests into the following suites. Non-Persistent Tests and then one testsuite per registered persistant l

Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Dean Zobec
Michael Van Canneyt pravi: > > The good news is that fpcunit is scheduled for documentation after fcl-base > and before fcl-db. The bad news is that there are still 12 units to be > documented in fcl-base. Which is about 1/3 of the total number of units > in fcl-base. > > We'll get there. Slo

Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Dean Zobec
Graeme Geldenhuys pravi: > Looking into the DUnit code I found the reason for passing in the > name. It's actually a Suite Path used to automatically create > TTestSuites for you so you can better group you tests case in a > hierarchy. You would use it if you don't want the registered test > case

Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Michael Van Canneyt
On Mon, 21 May 2007, Graeme Geldenhuys wrote: > > TTest is an abstract class, TTestSuite is a composite pattern. Just look > > at the JUnit documentation, here you can find a UML diagram: > > Thanks, I'll take a look at those links. I'm sure they will come in handy. > > > > > Still, it's not a

Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Graeme Geldenhuys
On 5/21/07, Dean Zobec <[EMAIL PROTECTED]> wrote: The ATest parameter can be a TTestCase or a TTestSuite After reading some more docs on DUnit (which is also a port of JUnit) I found they implemented the Composite pattern. Looking a bit closer to the FPCUnit code I came to the same conclusion

Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Dean Zobec
Graeme, > Hi, > > When would you use TestSuiteName and when TestName? TestSuiteName is the name of the TestSuite (parent) that contains the Test > > For example, the following I think is wrong. > > constructor TTestSuite.Create(AName: string); > begin > Create(); > FName := AName; > end; > >

[fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Graeme Geldenhuys
Hi, When would you use TestSuiteName and when TestName? For example, the following I think is wrong. constructor TTestSuite.Create(AName: string); begin Create(); FName := AName; end; Shouldn't this set the FTestSuiteName field? Now if I do a TestSuite.TestSuiteName it doesn't return FName,