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

Bug#641847: ITP: libtest-indistdir-perl -- test environment setup for development with IDE

Package: wnpp
Owner: Fabrizio Regalli <fabreg@fabreg.it>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org,debian-perl@lists.debian.org

* Package name    : libtest-indistdir-perl
  Version         : 1.112071
  Upstream Author : Christian Walde <walde.christian@googlemail.com>
* URL             : http://search.cpan.org/dist/Test-InDistDir/
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : test environment setup for development with IDE

Test::InDistDir helps run test scripts in IDEs like Komodo.

When running test scripts in an IDE i have to set up a project file defining
the dist dir to run tests in and a lib dir to load additional modules from.
Often I didn't feel like doing that, especially when i only wanted to do a
small patch to a dist. In those cases i added a BEGIN block to mangle the
environment for me.

This module basically is that BEGIN block. It automatically moves up one
directory when it cannot see the test script in "t/$scriptname" and includes
'lib' in @INC when there's no blib present. That way the test ends up with
almost the same environment it'd get from EUMM/prove/etc., even when it's
actually run inside the t/ directory.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: