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
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
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
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
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
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;
>
>
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,