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