{
    "mode": "perldoc",
    "parameter": "TAP::Formatter::Color",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AFormatter%3A%3AColor/json",
    "generated": "2026-06-10T13:44:49Z",
    "synopsis": "use TAP::Formatter::Color;\nmy $harness = TAP::Formatter::Color->new( \\%args );\n$harness->runtests(@tests);",
    "sections": {
        "NAME": {
            "content": "TAP::Formatter::Color - Run Perl test scripts with color\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.43\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Note that this harness is *experimental*. You may not like the colors I've chosen and I haven't\nyet provided an easy way to override them.\n\nThis test harness is the same as TAP::Harness, but test results are output in color. Passing\ntests are printed in green. Failing tests are in red. Skipped tests are blue on a white\nbackground and TODO tests are printed in white.\n\nIf Term::ANSIColor cannot be found (and Win32::Console::ANSI if running under Windows) tests\nwill be run without color.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use TAP::Formatter::Color;\nmy $harness = TAP::Formatter::Color->new( \\%args );\n$harness->runtests(@tests);\n",
            "subsections": []
        },
        "METHODS": {
            "content": "",
            "subsections": [
                {
                    "name": "Class Methods",
                    "content": "\"new\"\nThe constructor returns a new \"TAP::Formatter::Color\" object. If Term::ANSIColor is not\ninstalled, returns undef.\n\n\"cancolor\"\nTest::Formatter::Color->cancolor()\n\nReturns a boolean indicating whether or not this module can actually generate colored output.\nThis will be false if it could not load the modules needed for the current platform.\n\n\"setcolor\"\nSet the output color.\n"
                }
            ]
        }
    },
    "summary": "TAP::Formatter::Color - Run Perl test scripts with color",
    "flags": [],
    "examples": [],
    "see_also": []
}