17 May 2010 15:45:40 UTC
- Distribution: Test-CompanionClasses
- Module version: 1.101370
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (0)
- Testers (1428 / 19 / 0)
- KwaliteeBus factor: 0
- 91.04% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (19.1KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMARCEL Marcel Grünauer
- BUGS AND LIMITATIONS
- COPYRIGHT AND LICENSE
Test::CompanionClasses::Engine - Run tests defined in companion classes
use Test::CompanionClasses; Test::CompanionClasses->new->run_tests('...');
This is the core of
Actually runs the companion class tests.
Takes named arguments (as a hash). Recognized keys are:
A reference to a list of strings that are interpreted as package filters. A companion test class is only run if the corresponding real class' package name matches this filter list.
filter. If this boolean flag is set, the real class name must match exactly, otherwise a substring match is sufficient.
Test::CompanionClasses->mk_new->run_tests( filter => [ qw/Foo::Bar Baz/ ] );
will run the companion tests of
Test::CompanionClasses->mk_new->run_tests( filter => [ qw/Foo::Bar Baz/ ] exact => 1, );
will only run the companion tests of
Sets the directory in and under which
run_tests()is looking for test companion classes. Defaults to
$Binis the location of the program as determined by FindBin. This default is used because normally companion class tests will be run from a perl distribution's
You can also specify that other classes not found in
libshould be tested. Use a reference to an array of class names as the value for
inheritedand those classes' companion tests will be run as well. The class names still have to match the
filter, if one was specified.
This is useful if your distribution depends on another one which also has defined test companion classes. If your distribution changes the way these other test companion classes are working, you can inherit those tests to see whether they still work with your distribution.
See perlmodinstall for information and options on installing Perl modules.
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Test-CompanionClasses.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Test-CompanionClasses/.
The development version lives at http://github.com/hanekomu/Test-CompanionClasses/. Instead of sending patches, please fork this project using the standard git and github infrastructure.
Marcel Gruenauer <firstname.lastname@example.org>
This software is copyright (c) 2007 by Marcel Gruenauer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Test::CompanionClasses, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::CompanionClasses
For more information on module installation, please visit the detailed CPAN module installation guide.