A few weeks ago I said
As far as I can tell all, of the current CPAN testing frameworks are designed to test Perl Modules (.pm files). Because of this they are designed to be consumers of the services provided by the modules under test.

Testing Applications and Suites using Perl and TAP « Alec the Geek

It turns out of course that the test framework can be used with a Perl application. It is nessasry to imbed the tests directly in the code. The following simple, but complete, example is taken from Perl Testing: A Developers's Notebook. #!perl use strict; use warnings; use Test::Simple tests =>1; sub hello_world { return "Hello, world!"; } ok( hello_world( ) eq "Hello, world!" );

Blogged with Flock