[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#531404: ITP: libtest-tempdir-perl -- Temporary files support for testing.



Package: wnpp
Severity: wishlist
Owner: franck cuny <franck@lumberjaph.net>


* Package name    : libtest-tempdir-perl
  Version         : 0.04
  Upstream Author : Yuval Kogman <nothingmuch@woobling.org>
* URL             : http://search.cpan.org/~nuffin/Test-TempDir-0.04/
* License         : Artistic
  Programming Lang: Perl
  Description     : Temporary files support for testing.

Test::TempDir provides temporary directory creation with testing in mind.

The differences between using this and using File::Temp are:

    * If t/tmp is available (writable, creatable, etc) it's preferred over $ENV{TMPDIR} etc. Otherwise a temporary directory will be used.

      This is temp_root
    * Lockfiles are used on t/tmp, to prevent race conditions when running under a parallel test harness.
    * The temp_root is cleaned at the end of a test run, but not if tests failed.
    * temp_root is emptied at the begining of a test run unconditionally.
    * The default policy is not to clean the individual tempfiles and tempdirs within temp_root, in order to aid in debugging of failed tests.



Reply to: