-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 03 Oct 2002 21:58, coma_killen / fastmail.fm wrote:
> Hi,
>
> Whats the standard way to reuse the Test::Unit tests for a
> base class when deriving a subclass? Should the testcase
> class derive from the base class testcase class or are there
> better ways?
>
> Regards,
>
> Karsten

Hi Karsten,

I'm not sure what you would need to retest in the subclass since whatever you 
tested in the superclass has also been tested in the subclass. I tend to only 
test the public interfaces. In my experience tests are not reused, but can 
have parts of them extracted and reused, the test itself (the inputs and 
assertions) are specific for that individual method - if they are not, do you 
have the same method twice or is your design as simple as it ought to be? 
Perhaps I don't understand your example enough, can you provide a scenario?

- -- 
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9nBYm0X8w8X71zPcRAhOOAJ4kpzO2iTMxV+OMQacmBGj2bPiq9wCfRCPb
QAAdxE3xoCLPI3ln/THcLvw=
=lGEZ
-----END PGP SIGNATURE-----