Test::CanFork - Only run tests when forking is supported, optionally conditioned on ENV vars.
Use this first thing in a test that should be skipped when forking is not supported. You can also specify that the test should be skipped when specific environment variables are not set.
Skip the test if forking is unsupported:
use Test::CanFork; use Test::More; ...
Skip the test if forking is unsupported, or any of the specified env vars are not set:
use Test::CanFork qw/AUTHOR_TESTING RUN_PROBLEMATIC_TESTS .../; use Test::More; ...
The source code repository for Test::More can be found at http://github.com/Test-More/test-more/.
Copyright 2014 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Test::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Simple
CPAN shell
perl -MCPAN -e shell install Test::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.