Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Loose Guidelines

by dragonchild (Archbishop)
on Apr 01, 2004 at 01:18 UTC ( #341477=note: print w/replies, xml ) Need Help??

in reply to Loose Guidelines
in thread Testaholics Anonymous (or how I learned to stop worrying and love Test::More)

The test suite will run slower, and with 2,500 tests, that is going to become an issue.

I have serious issues with this line of thought. In my opinion, one should run every test that deals with any piece of code that has a 0.00001% chance of dealing with the code you changed since the last time you ran a full test suite.

Now, my codebase is broken up into 23+ Perl distributions (each its own CVS project) and 4 other CVS projects containing Oracle DDL, templates, and the like. The projects have a definite hierarchy (which is delineated in every distributions Makefile.PL). If I change some code in XXX::Foo and YYY::Foo depends on XXX::Foo, I need to run the tests in both XXX::Foo and YYY::Foo. Period. There's just no way around that.

Now, I don't have to run the tests for XXX::Foo if YYY::Foo changes, and the test suites need to be flexible enough to handle that. But, I think it's foolish to complain about test suite size or the time to run it. You have tests for a reason. Don't sabotage yourself just because you're impatient. It may be a virtue, but so is patience.

We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

Replies are listed 'Best First'.
Re: Re: Loose Guidelines
by pbeckingham (Parson) on Apr 01, 2004 at 01:39 UTC

    Please bear in mind that I was referring to redundant tests slowing the test suite. Redundant is being used here to mean unnecessary. If you are advocating more tests, each of which increases coverage to some degree, then I am in agreement with you.

    Redundancy in the test suite - by definition - is pointless, and serves to lengthen the wait every time it is run, and that will multiply up and become, as I said, an issue.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-04-17 23:42 GMT
Find Nodes?
    Voting Booth?

    No recent polls found