Integration Testing
Communications of the ACM
September 1994
Paul Jorgensen and Carl Erickson
0bject-oriented software development raises important testing issues. Many of these stem from attempts to directly apply theoretical constructs and techniques of traditional software development and testing to object-oriented software. We examine this traditional heritage here, with special emphasis on assumptions and practices that need to be modified or replaced.
Unit Testing Perl
Design Perl code using well-defined classes, and you will be able to unit-test it effectively.
The provided example of a simple CGI app uses several simple classes that cleanly divide up the responsibilities of input collection, processing and output generation.
However, the most important part of this pattern is how easy it is to test the behavior and interaction of these classes utilizing the universally available Test::More package.
Installation: unpack the tarball in a place where Apache can see and execute CGI. main.pl is the main executable, the remainder of the files are templates, libs and tests.
Run tests from the command line in the ooperltests/ directory: ./testall.pl