Dist::Zilla::Plugin::CompileTests - common tests to check syntax of your modules


Dist-Zilla-Plugin-CompileTests documentation  | view source Contained in the Dist-Zilla-Plugin-CompileTests distribution.

Index


NAME

Top

Dist::Zilla::Plugin::CompileTests - common tests to check syntax of your modules

VERSION

Top

version 1.110930

SYNOPSIS

Top

In your dist.ini:

    [CompileTests]
    skip      = Test$
    fake_home = 1
    needs_display = 1

DESCRIPTION

Top

This is an extension of Dist::Zilla::Plugin::InlineFiles, providing the following files:

* t/00-compile.t - a standard test to check syntax of bundled modules

This test will find all modules and scripts in your dist, and try to compile them one by one. This means it's a bit slower than loading them all at once, but it will catch more errors.

This plugin accepts the following options:

* skip: a regex to skip compile test for modules matching it. The match is done against the module name (Foo::Bar), not the file path (lib/Foo/Bar.pm).
* fake_home: a boolean to indicate whether to fake $ENV{HOME}. This may be needed if your module unilateraly creates stuff in homedir: indeed, some cpantesters will smoke test your dist with a read-only home directory. Default to false.
* needs_display: a boolean to indicate whether to skip the compile test on non-win32 systems when $ENV{DISPLAY} is not set. Default to false.

SEE ALSO

Top

Test::NeedsDisplay

You can also look for information on this module at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Dist-Zilla-Plugin-CompileTests

* CPAN Ratings

http://cpanratings.perl.org/d/Dist-Zilla-Plugin-CompileTests

* Open bugs

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dist-Zilla-Plugin-CompileTests

* Git repository

http://github.com/jquelin/dist-zilla-plugin-compiletests.git.

AUTHOR

Top

Jerome Quelin

COPYRIGHT AND LICENSE

Top


Dist-Zilla-Plugin-CompileTests documentation  | view source Contained in the Dist-Zilla-Plugin-CompileTests distribution.