-
-
24 May 2021 11:36:26 UTC
- Distribution: FunctionalPerl
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers (100 / 2 / 13)
- Kwalitee
Bus factor: 1- License: perl_5
- Perl: v5.16.4
- Activity
24 month- Tools
- Download (443.46KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Christian Jaeger
- Dependencies
- Digest
- File::Path
- Getopt::Long
- Import::Into
- Math::BigInt
- NEXT
- PerlIO::utf8_strict
- Safe::Isa
- Scalar::Util
- Symbol
- Test::More
- autobox
- base
- overload
- utf8
- warnings
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Chj::TEST
SYNOPSIS
use Chj::TEST; # or use Chj::TEST use => 'Method::Signatures' #, use => ['Foo::Bar', qw(bar baz)], #, require => 'CGI' ; # ^ this will use or require the indicated modules, and if RUN_TESTS # is set and they fail, will gracefully fail with a SKIP testing message # (if RUN_TESTS is not set, it will die as normally). TEST { 1+1 } 2; # success TEST { 1+1 } "2"; # fails, # because equality is compared on the result of Data::Dumper # compute also result lazily: TEST { 1+1 } GIVES {3-1}; # success TEST_STDOUT { print "Hello" } "Hello"; TEST_EXCEPTION { die "Hello" } "Hello"; # " at .. line .." and # backtrace are cut off use Chj::TEST ':all'; my $result = run_tests(__PACKAGE__); is $result->failures, 0; # 0 failures is $result->successes > 0, 1; #run_tests; # or #run_tests __PACKAGE__, "Another::Package"; # or #run_tests_ packages => __PACKAGE__, numbers => [2..4]; # aliases package, number, no also accepted # For conditional running the tests as part of a global test suite: #perhaps_run_tests "main" or do_something_else; # This will run run_tests("main") iff the RUN_TESTS environment # variable is true, otherwise run do_something_else.
DESCRIPTION
If the `TEST` environmental variable is set to false (as opposed to not set at all), tests are dropped. This saves the memory otherwise required to hold the test code and results.
SEE ALSO
NOTE
This is alpha software! Read the status section in the package README or on the website.
Module Install Instructions
To install FunctionalPerl, copy and paste the appropriate command in to your terminal.
cpanm FunctionalPerl
perl -MCPAN -e shell install FunctionalPerl
For more information on module installation, please visit the detailed CPAN module installation guide.