Shlomi Fish > Test-Run-Plugin-ColorSummary-0.0201 > Test::Run::Plugin::ColorSummary

Download:
Test-Run-Plugin-ColorSummary-0.0201.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.0201   Source  

NAME ^

Test::Run::Plugin::ColorSummary - A Test::Run plugin that colors the summary.

VERSION ^

0.0201

SYNOPSIS ^

    package MyTestRun;

    use vars qw(@ISA);

    @ISA = (qw(Test::Run::Plugin::ColorSummary Test::Run::Obj));

    my $tester = MyTestRun->new(
        {
            test_files =>
            [
                "t/sample-tests/one-ok.t",
                "t/sample-tests/several-oks.t"
            ],
        }
        );

    $tester->runtests();

EXTRA PARAMETERS TO NEW ^

We accept two new named parameters to the new constructor:

summary_color_success

This is the color string for coloring the success line. The string itself conforms to the one specified in Term::ANSIColor.

summary_color_failure

This is the color string for coloring the summary line in case of failure. The string itself conforms to the one specified in Term::ANSIColor.

FUNCTIONS ^

$tester->_handle_runtests_error()

We override _handle_runtests_error() to colour the errors in red. The rest of the documentation is the code.

AUTHOR ^

Shlomi Fish, <shlomif@iglu.org.il>

BUGS ^

Please report any bugs or feature requests to bug-test-run-plugin-colorsummary@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Run-Plugin-ColorSummary. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Test::Run::Plugin::ColorSummary

You can also look for information at:

SOURCE AVAILABILITY ^

The latest source of Test::Run::Plugin::ColorSummary is available from the Test::Run BerliOS Subversion repository:

https://svn.berlios.de/svnroot/repos/web-cpan/Test-Harness-NG/

SEE ALSO ^

Test::Run::Obj, Term::ANSIColor, Test::Run::CmdLine::Plugin::ColorSummary.

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2005 Shlomi Fish, all rights reserved.

This program is released under the MIT X11 License.

syntax highlighting: