[Kc] Test::More Inline

Garrett Goebel garrett.goebel at gmail.com
Fri Mar 18 14:12:35 PDT 2011


http://search.cpan.org/dist/Test-Inline/

[hello from Atlanta ;)]

On Fri, Mar 18, 2011 at 4:56 PM, djgoku <djgoku at gmail.com> wrote:

> So I am in the process of writing a perl script and I don't really
> want to have multiple files, one for the actually script and another
> for testing. So I have written all my tests in the same file using
> Test::More. The perl script uses a command line switch (-t) to enable
> running tests then exits Has anyone ever done this before? Is there a
> better way less using multiple files?
>
> if($test) {
>   # run tests and exit
> } else {
>   main();
> }
>
> Jonathan
> _______________________________________________
> kc mailing list
> kc at pm.org
> http://mail.pm.org/mailman/listinfo/kc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kc/attachments/20110318/27ce06ae/attachment.html>


More information about the kc mailing list