Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: What is a testing plan?

by t'mo (Pilgrim)
on Mar 02, 2006 at 04:25 UTC ( #533805=note: print w/replies, xml ) Need Help??

in reply to What is a testing plan?

One thing you might want to consider is that testing shouldn't just cover your expected outputs given certain inputs, but should also test the "behavior" of the code. Your tests should prove that the code behaves a certain way, e.g., that an object from Module::Foo delegates work to another object from Module::Bar.

A co-worker taught me that you can tell if your tests are of this type if you can describe each test using the word "should". For example, "Module::Foo should call Module::Bar::x", "should populate webpage template with values", "should throw exception if Oracle error code XYZ received", etc.

This shouldn't detract from having tests for the output, but from what I've seen recently, most tests involving actual data values (as opposed to behaviors) should be thrown in the "integration test" category.

Some relevant links:,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://533805]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-04-26 23:42 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (494 votes). Check out past polls.