vendredi 30 janvier 2015

How to use Test::Simple conditionally?

I would like to add the option to test my Program conditionally with a command line option like --test which execute &test.


Unfortunately even if I add use Test::Simple tests => 1 inside the &test subroutine, Perl think I want to do the tests everywhere else.


Is it possible to use Test::Simple or even Test::More only when needed?


Aucun commentaire:

Enregistrer un commentaire