19 Apr 2013 18:13:15 UTC
- Distribution: Test-Settings
- Module version: 0.003
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (2568 / 0 / 0)
- KwaliteeBus factor: 1
- 94.41% Coverage
- License: perl_5
- Activity24 month
- Download (12.02KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userWOLFSAGE Matthew Horsfall (alh)
Test::S - Change test settings on the command line
Run author test
perl -MTest::S=author test.t
Or with prove
prove -MTest::S=author -r .
Change a few settings
Or disable certain kinds explicitly
Don't run interactive tests
prove -MTest::S=non_interactive -r .
Test::S is a shortened interface to the functionality provided by Test::Settings for use on the command line to modify the environment on the fly. This should not be used in modules! It will not behave!
This allows one to enable or disable certain types of tests on the command line without needing to set environment variables by hand.
To use the modifiers on the command line, with many tools you can load the module with
-Mand provide a comma separated list of the modifiers you want:
The following can all be used in combination with each other (though some combinations obviously cancel each other out)
non_interactive means do not run interactive tests, and no_non_interactive means run interactive tests. This can be slightly confusing.
all and none, if used, should be the first items in the list else they will override the other settings.
Test::Settings - Ask or tell when certain types of tests should be run
Test::DescribeMe - Tell test runners what kind of test you are
Test::Is - Skip test in a declarative way, following the Lancaster Consensus
Matthew Horsfall (alh) - <email@example.com>
You may distribute this code under the same terms as Perl itself.
Module Install Instructions
To install Test::Settings, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::Settings
For more information on module installation, please visit the detailed CPAN module installation guide.