Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Inheriting Tests and Other Test Design Issues

by dragonchild (Archbishop)
on Sep 29, 2003 at 13:10 UTC ( #294944=note: print w/replies, xml ) Need Help??


in reply to Re: Inheriting Tests and Other Test Design Issues
in thread Inheriting Tests and Other Test Design Issues

I agree. If behaviors A, B, and C are provided by the superclass, then A, B, and C should be tested in the super-test. My subclass provides behavior D, thus I provide tests for behavior D, inheriting the tests for behaviors A, B, and C. If the superclass changes its behavior, it will change its tests. My testing of my subclass will inherit the changes in the tests. No problem.

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

  • Comment on Re: Re: Inheriting Tests and Other Test Design Issues

Replies are listed 'Best First'.
Re: Re: Re: Inheriting Tests and Other Test Design Issues
by dws (Chancellor) on Sep 29, 2003 at 13:54 UTC
    I agree. If behaviors A, B, and C are provided by the superclass, then A, B, and C should be tested in the super-test.

    That's not what I recommended. Please re-read what you think you're agreeing with.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://294944]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2020-04-05 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (36 votes). Check out past polls.

    Notices?