Re: [Lazarus] TTestSuite

2009-02-14 Thread Lee Jenkins
Graeme Geldenhuys wrote: > On Tue, Feb 10, 2009 at 6:03 PM, Lee Jenkins wrote: >> Of course, things like that sometimes happen when its most inconvenient to >> address it ;) Murphy's Law demonstrated. > > Yup. Just got the newsgroup server working for external access. NNTP > and WebNews now wor

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 5:53 PM, Lee Jenkins wrote: >> Also have a look at the tiFPCUnitUtils.pas unit in tiOPF. It can >> create a more complex hierarchy with much less effort. Some of that >> code could probably move to FPC itself. > > I'll have a look, never came across it before. It's in the

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 6:03 PM, Lee Jenkins wrote: > > Of course, things like that sometimes happen when its most inconvenient to > address it ;) Murphy's Law demonstrated. Yup. Just got the newsgroup server working for external access. NNTP and WebNews now work. Regards, - Graeme -

Re: [Lazarus] TTestSuite

2009-02-10 Thread Lee Jenkins
Graeme Geldenhuys wrote: > On Tue, Feb 10, 2009 at 4:30 PM, Lee Jenkins wrote: >> P.S. Graeme can you check the power cable for the tiOPF newsgroups server? >> I >> think someone may have kicked it out ;) > > The webnews interface works. I'll give the server a reboot and see > what happens. We

Re: [Lazarus] TTestSuite

2009-02-10 Thread Lee Jenkins
Graeme Geldenhuys wrote: > On Tue, Feb 10, 2009 at 4:28 PM, Lee Jenkins wrote: >> Something like this: >> > > > TTestSuite1 = class(TTestCase) > published > procedure TestCase1; > procedure TestCase2; > end; > > initialization > RegisterTest('Main Test Suite', TTestSuite1); >

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 4:30 PM, Lee Jenkins wrote: > > P.S. Graeme can you check the power cable for the tiOPF newsgroups server? I > think someone may have kicked it out ;) The webnews interface works. I'll give the server a reboot and see what happens. We had a minor accident on Friday. Wate

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 4:28 PM, Lee Jenkins wrote: > > Something like this: > > MainTestSuite < Test Suite > --SubTestSuite < Child Test Suite > TestCase1 < A Test case under a TestSuite > TestCase2 < A Test case under a TestSuite > --SubTestSuite2 >

Re: [Lazarus] TTestSuite

2009-02-10 Thread Lee Jenkins
Graeme Geldenhuys wrote: > On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins wrote: >> Would anyone mind providing a simple example or useful link? I've already >> looked at this: > > > Do you mean the following > > P.S. Graeme can you check the power cable for the tiOPF newsgroups server?

Re: [Lazarus] TTestSuite

2009-02-10 Thread Lee Jenkins
Graeme Geldenhuys wrote: > On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins wrote: >> Would anyone mind providing a simple example or useful link? I've already >> looked at this: > > Lee, did you not look at the tiOPF test suite? ;-) > No actually, I did not. I'll definitely take a look. > Do y

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins wrote: > > Would anyone mind providing a simple example or useful link? I've already > looked at this: You can also register the tests with better descriptions and test decorators. I use the latter for a shared DB connection. The identifiers starti

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins wrote: > > Would anyone mind providing a simple example or useful link? I've already > looked at this: Lee, did you not look at the tiOPF test suite? ;-) Do you mean the following TMoneyTest = class(TTestCase) protected procedure SetUp

[Lazarus] TTestSuite

2009-02-09 Thread Lee Jenkins
Sorry I'm a little dense on this one. I've read over the pdf available on the fpc website and look at some of the samples in the /fpc-fpunit directory and I'm still not getting how to register a TTestSuite with TTestCase object underneath it. Would anyone mind providing a simple example or