# phpman > man > TAP::Formatter::Color(3perl)

## NAME
    [TAP::Formatter::Color](https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AFormatter%3A%3AColor/markdown) - Run Perl test scripts with color

## VERSION
    Version 3.43

## DESCRIPTION
    Note that this harness is *experimental*. You may not like the colors I've chosen and I haven't
    yet provided an easy way to override them.

    This test harness is the same as [TAP::Harness](https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AHarness/markdown), but test results are output in color. Passing
    tests are printed in green. Failing tests are in red. Skipped tests are blue on a white
    background and TODO tests are printed in white.

    If [Term::ANSIColor](https://www.chedong.com/phpMan.php/perldoc/Term%3A%3AANSIColor/markdown) cannot be found (and [Win32::Console::ANSI](https://www.chedong.com/phpMan.php/perldoc/Win32%3A%3AConsole%3A%3AANSI/markdown) if running under Windows) tests
    will be run without color.

## SYNOPSIS
     use [TAP::Formatter::Color](https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AFormatter%3A%3AColor/markdown);
     my $harness = [TAP::Formatter::Color](https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AFormatter%3A%3AColor/markdown)->new( \%args );
     $harness->runtests(@tests);

## METHODS
### Class Methods
   "new"
    The constructor returns a new "[TAP::Formatter::Color](https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AFormatter%3A%3AColor/markdown)" object. If [Term::ANSIColor](https://www.chedong.com/phpMan.php/perldoc/Term%3A%3AANSIColor/markdown) is not
    installed, returns undef.

   "can_color"
      [Test::Formatter::Color](https://www.chedong.com/phpMan.php/perldoc/Test%3A%3AFormatter%3A%3AColor/markdown)->can_color()

    Returns a boolean indicating whether or not this module can actually generate colored output.
    This will be false if it could not load the modules needed for the current platform.

   "set_color"
    Set the output color.

