Commit | Line | Data |
---|---|---|
845d7e37 SP |
1 | package Test::Builder::Tester::Color; |
2 | ||
3 | use strict; | |
4bba85d0 | 4 | our $VERSION = '1.301001_093'; |
518760d9 | 5 | $VERSION = eval $VERSION; ## no critic (BuiltinFunctions::ProhibitStringyEval) |
845d7e37 | 6 | |
518760d9 | 7 | use Test::Stream 1.301001 '-internal'; |
845d7e37 SP |
8 | require Test::Builder::Tester; |
9 | ||
3e887aae | 10 | |
845d7e37 SP |
11 | =head1 NAME |
12 | ||
13 | Test::Builder::Tester::Color - turn on colour in Test::Builder::Tester | |
14 | ||
15 | =head1 SYNOPSIS | |
16 | ||
17 | When running a test script | |
18 | ||
19 | perl -MTest::Builder::Tester::Color test.t | |
20 | ||
21 | =head1 DESCRIPTION | |
22 | ||
23 | Importing this module causes the subroutine color in Test::Builder::Tester | |
24 | to be called with a true value causing colour highlighting to be turned | |
25 | on in debug output. | |
26 | ||
27 | The sole purpose of this module is to enable colour highlighting | |
28 | from the command line. | |
29 | ||
30 | =cut | |
31 | ||
ccbd73a4 | 32 | sub import { |
845d7e37 SP |
33 | Test::Builder::Tester::color(1); |
34 | } | |
35 | ||
36 | =head1 AUTHOR | |
37 | ||
38 | Copyright Mark Fowler E<lt>mark@twoshortplanks.comE<gt> 2002. | |
39 | ||
40 | This program is free software; you can redistribute it | |
41 | and/or modify it under the same terms as Perl itself. | |
42 | ||
43 | =head1 BUGS | |
44 | ||
45 | This module will have no effect unless Term::ANSIColor is installed. | |
46 | ||
47 | =head1 SEE ALSO | |
48 | ||
49 | L<Test::Builder::Tester>, L<Term::ANSIColor> | |
50 | ||
51 | =cut | |
52 | ||
53 | 1; | |
518760d9 CG |
54 | |
55 | __END__ | |
56 | ||
57 | =encoding utf8 | |
58 | ||
59 | =head1 SOURCE | |
60 | ||
61 | The source code repository for Test::More can be found at | |
62 | F<http://github.com/Test-More/test-more/>. | |
63 | ||
64 | =head1 MAINTAINER | |
65 | ||
66 | =over 4 | |
67 | ||
68 | =item Chad Granum E<lt>exodist@cpan.orgE<gt> | |
69 | ||
70 | =back | |
71 | ||
72 | =head1 AUTHORS | |
73 | ||
74 | The following people have all contributed to the Test-More dist (sorted using | |
75 | VIM's sort function). | |
76 | ||
77 | =over 4 | |
78 | ||
79 | =item Chad Granum E<lt>exodist@cpan.orgE<gt> | |
80 | ||
81 | =item Fergal Daly E<lt>fergal@esatclear.ie>E<gt> | |
82 | ||
83 | =item Mark Fowler E<lt>mark@twoshortplanks.comE<gt> | |
84 | ||
85 | =item Michael G Schwern E<lt>schwern@pobox.comE<gt> | |
86 | ||
87 | =item 唐鳳 | |
88 | ||
89 | =back | |
90 | ||
91 | =head1 COPYRIGHT | |
92 | ||
93 | There has been a lot of code migration between modules, | |
94 | here are all the original copyrights together: | |
95 | ||
96 | =over 4 | |
97 | ||
98 | =item Test::Stream | |
99 | ||
100 | =item Test::Stream::Tester | |
101 | ||
102 | Copyright 2014 Chad Granum E<lt>exodist7@gmail.comE<gt>. | |
103 | ||
104 | This program is free software; you can redistribute it and/or | |
105 | modify it under the same terms as Perl itself. | |
106 | ||
107 | See F<http://www.perl.com/perl/misc/Artistic.html> | |
108 | ||
109 | =item Test::Simple | |
110 | ||
111 | =item Test::More | |
112 | ||
113 | =item Test::Builder | |
114 | ||
115 | Originally authored by Michael G Schwern E<lt>schwern@pobox.comE<gt> with much | |
116 | inspiration from Joshua Pritikin's Test module and lots of help from Barrie | |
117 | Slaymaker, Tony Bowden, blackstar.co.uk, chromatic, Fergal Daly and the perl-qa | |
118 | gang. | |
119 | ||
120 | Idea by Tony Bowden and Paul Johnson, code by Michael G Schwern | |
121 | E<lt>schwern@pobox.comE<gt>, wardrobe by Calvin Klein. | |
122 | ||
123 | Copyright 2001-2008 by Michael G Schwern E<lt>schwern@pobox.comE<gt>. | |
124 | ||
125 | This program is free software; you can redistribute it and/or | |
126 | modify it under the same terms as Perl itself. | |
127 | ||
128 | See F<http://www.perl.com/perl/misc/Artistic.html> | |
129 | ||
130 | =item Test::use::ok | |
131 | ||
132 | To the extent possible under law, 唐鳳 has waived all copyright and related | |
133 | or neighboring rights to L<Test-use-ok>. | |
134 | ||
135 | This work is published from Taiwan. | |
136 | ||
137 | L<http://creativecommons.org/publicdomain/zero/1.0> | |
138 | ||
139 | =item Test::Tester | |
140 | ||
141 | This module is copyright 2005 Fergal Daly <fergal@esatclear.ie>, some parts | |
142 | are based on other people's work. | |
143 | ||
144 | Under the same license as Perl itself | |
145 | ||
146 | See http://www.perl.com/perl/misc/Artistic.html | |
147 | ||
148 | =item Test::Builder::Tester | |
149 | ||
150 | Copyright Mark Fowler E<lt>mark@twoshortplanks.comE<gt> 2002, 2004. | |
151 | ||
152 | This program is free software; you can redistribute it | |
153 | and/or modify it under the same terms as Perl itself. | |
154 | ||
155 | =back |