On Tue, 29 Oct 2013 12:36:58 -0400 Shawn H Corey <[email protected]> wrote:
> On Tue, 29 Oct 2013 17:10:51 +0100 > Manfred Lotz <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
