best practices for temporary files during testing

2008-06-07 Thread Gabor Szabo
I just got a failure report from David Golden as this line did not work with "Permission denied" copy($0, "$0.tmp") He was running it on Windows (Strawberry Perl). I am sure I create temporary files in various test, so it might be the right time to streamline them. So what is the recommended p

Re: best practices for temporary files during testing

2008-06-07 Thread David Golden
On Sat, Jun 7, 2008 at 1:36 PM, Gabor Szabo <[EMAIL PROTECTED]> wrote: > So what is the recommended place for temporary files and directories > that I can expect to be writable? > > Should I just use File::Tempdir ? I've found the best thing is often to give yourself a temp directory and then work

Re: best practices for temporary files during testing

2008-06-07 Thread Christopher Laco
Gabor Szabo wrote: I just got a failure report from David Golden as this line did not work with "Permission denied" copy($0, "$0.tmp") He was running it on Windows (Strawberry Perl). I am sure I create temporary files in various test, so it might be the right time to streamline them. So what

Re: best practices for temporary files during testing

2008-06-07 Thread David Golden
On Sat, Jun 7, 2008 at 1:58 PM, Christopher Laco <[EMAIL PROTECTED]> wrote: > Directory::Scratch..and it cleans up after itself. Module::Install-- (and a somewhat dated one, too) Module::Install with auto_install-- Otherwise, it's a nice wrapper around File::Temp, Path::Class and various other t

Re: Test::NoWarnings and plan skip_all don't like each other

2008-06-07 Thread Gabor Szabo
On Thu, May 15, 2008 at 2:34 PM, Gabor Szabo <[EMAIL PROTECTED]> wrote: > Today I found out that if you skip_all tests while you have > Test::NoWarnings your test > will fail. > Bad.:-( > ... and a work around I just found would be to load Test::NoWarnings only after the call to plan() like t