1Test::InDistDir(3)    User Contributed Perl Documentation   Test::InDistDir(3)
2
3
4

NAME

6       Test::InDistDir - test environment setup for development with IDE
7

VERSION

9       version 1.112071
10

SYNOPSIS

12           use Test::More;
13           use Test::InDistDir;
14
15           # when this is run from inside t/ with a default @INC, it will now be in the
16           # dist dir and include ./lib in @INC
17

DESCRIPTION

19       This module helps run test scripts in IDEs like Komodo.
20
21       When running test scripts in an IDE i have to set up a project file
22       defining the dist dir to run tests in and a lib dir to load additional
23       modules from. Often I didn't feel like doing that, especially when i
24       only wanted to do a small patch to a dist. In those cases i added a
25       BEGIN block to mangle the environment for me.
26
27       This module basically is that BEGIN block. It automatically moves up
28       one directory when it cannot see the test script in "t/$scriptname" and
29       includes 'lib' in @INC when there's no blib present. That way the test
30       ends up with almost the same environment it'd get from EUMM/prove/etc.,
31       even when it's actually run inside the t/ directory.
32
33       At the same time it will still function correctly when called by
34       EUMM/prove/etc., since it does not change the environment in those
35       cases.
36

SUPPORT

38   Bugs / Feature Requests
39       Please report any bugs or feature requests by email to
40       "bug-test-indistdir at rt.cpan.org", or through the web interface at
41       <http://rt.cpan.org/Public/Dist/Display.html?Name=Test-InDistDir>. You
42       will be automatically notified of any progress on the request by the
43       system.
44
45   Source Code
46       This is open source software.  The code repository is available for
47       public review and contribution under the terms of the license.
48
49       <https://github.com/wchristian/Test-InDistDir>
50
51         git clone https://github.com/wchristian/Test-InDistDir
52

AUTHOR

54       Christian Walde <walde.christian@googlemail.com>
55
57       This software is Copyright (c) 2011 by Christian Walde.
58
59       This is free software, licensed under:
60
61         DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004
62
63
64
65perl v5.36.0                      2022-07-22                Test::InDistDir(3)
Impressum