On Tue, 29 Oct 2013 12:36:58 -0400
Shawn H Corey <shawnhco...@gmail.com> wrote:

> On Tue, 29 Oct 2013 17:10:51 +0100
> Manfred Lotz <manfred.l...@arcor.de> wrote:
> 
> > Hi there,
> > I have some relatively small standalone perl scripts where I would
> > like to include tests.
> > 
> > Which is the recommended way to test standalone scripts?
> > 
> > 
> 
> Put the tests in a directory call "t" under the source. And see
> `man prove`. `prove` is a Perl tool for testing modules but it can be
> adapted for scripts. Each test script is given the extension *.t .
> 
> 

This is exactly what I don't want to do. IMHO, for testing modules or
applications this is the way to go. However, for a standalone script
I'd like to have my test data inside the script itself.

-- 
Manfred



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to