note
chromatic
<p>
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.
</p>
<p>
Start with [CPAN://Test::Tutorial], then my <a href="http://wgz.org/chromatic/perl/IntroTestMore.pdf">Introduction to Test::More</a>. You might also like a longer and slightly modified version of <a href="http://wgz.org/chromatic/perl/Test-Tutorial.pdf">Test::Tutorial</a>, and the <a href="http://www.perl.com/pub/a/2001/12/04/testing.html">Testing Evangelism</a> article. A very detailed example can be found in the <a href="http://www.perl.com/pub/a/2002/07/10/tmo.html">Test::MockObject</a> discussion</a>.
</p>
189148
189148