Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: What goes in a test suite?

by chromatic (Archbishop)
on Aug 10, 2002 at 16:46 UTC ( #189198=note: print w/replies, xml ) Need Help??

in reply to What goes in a test suite?

There are at least two kinds of tests: unit tests and integration tests. Unit tests test individual pieces of your code (functions, modules) in sufficient isolation, to demonstrate that the implementation works as you expect. Integration tests explore the project as a whole (as far as possible), to show that the individual pieces work together to provide the desired behavior.

Start with Test::Tutorial, then my Introduction to Test::More. You might also like a longer and slightly modified version of Test::Tutorial, and the Testing Evangelism article. A very detailed example can be found in the Test::MockObject discussion.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2016-10-21 22:19 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.