Commit | Line | Data |
845d7e37 |
1 | package Test::Builder::Tester::Color; |
2 | |
3 | use strict; |
3e887aae |
4 | our $VERSION = "1.18"; |
845d7e37 |
5 | |
6 | require Test::Builder::Tester; |
7 | |
3e887aae |
8 | |
845d7e37 |
9 | =head1 NAME |
10 | |
11 | Test::Builder::Tester::Color - turn on colour in Test::Builder::Tester |
12 | |
13 | =head1 SYNOPSIS |
14 | |
15 | When running a test script |
16 | |
17 | perl -MTest::Builder::Tester::Color test.t |
18 | |
19 | =head1 DESCRIPTION |
20 | |
21 | Importing this module causes the subroutine color in Test::Builder::Tester |
22 | to be called with a true value causing colour highlighting to be turned |
23 | on in debug output. |
24 | |
25 | The sole purpose of this module is to enable colour highlighting |
26 | from the command line. |
27 | |
28 | =cut |
29 | |
ccbd73a4 |
30 | sub import { |
845d7e37 |
31 | Test::Builder::Tester::color(1); |
32 | } |
33 | |
34 | =head1 AUTHOR |
35 | |
36 | Copyright Mark Fowler E<lt>mark@twoshortplanks.comE<gt> 2002. |
37 | |
38 | This program is free software; you can redistribute it |
39 | and/or modify it under the same terms as Perl itself. |
40 | |
41 | =head1 BUGS |
42 | |
43 | This module will have no effect unless Term::ANSIColor is installed. |
44 | |
45 | =head1 SEE ALSO |
46 | |
47 | L<Test::Builder::Tester>, L<Term::ANSIColor> |
48 | |
49 | =cut |
50 | |
51 | 1; |