Kernel::Test::Role::IsTestCase::Generic::HandlesConsoleOutput

NAME

Kernel::Test::Role::IsTestCase::Generic::HandlesConsoleOutput – role for direct console output of tests.

PUBLIC INTERFACE

has 'VerboseOutput'

attribute that holds the –verbose flag from the command line.

has 'ColoredOutput'

attribute that controls the output coloring.

has 'Try'

attribute that controls the number of tries.

has 'NoProgress'

attribute that controls printing a dot after each test

after 'BUILD'

perform some early initialization code for the output buffering.

around 'Run'

wrap around Run() to set-up the output buffering (in non-verbose mode).

PrintTestResult()

print a test result to the console.

Color()

this will color the given text (see Term::ANSIColor::color()) if ANSI output is available and active, otherwise the text stays unchanged.

    my $PossiblyColoredText = $CommandObject->Color('green', $Text);
Scroll to Top