TAP::Formatter::Base



TAP::Formatter::Base

NAME
VERSION
DESCRIPTION
SYNOPSIS
METHODS

NAME

TAP::Formatter::Base − Base class for harness output delegates

VERSION

Version 3.23

DESCRIPTION

This provides console orientated output formatting for TAP::Harness.

SYNOPSIS

 use TAP::Formatter::Console;
 my $harness = TAP::Formatter::Console−>new( \%args );

METHODS

Class Methods
"new"

 my %args = (
    verbose => 1,
 )
 my $harness = TAP::Formatter::Console−>new( \%args );

The constructor returns a new "TAP::Formatter::Console" object. If a TAP::Harness is created with no "formatter" a "TAP::Formatter::Console" is automatically created. If any of the following options were given to TAP::Harness−>new they well be passed to this constructor which accepts an optional hashref whose allowed keys are:

"verbosity"

Set the verbosity level.

"verbose"

Printing individual test results to STDOUT .

"timer"

Append run time for each test to output. Uses Time::HiRes if available.

"failures"

Show test failures (this is a no-op if "verbose" is selected).

"comments"

Show test comments (this is a no-op if "verbose" is selected).

"quiet"

Suppressing some test output (mostly failures while tests are running).

"really_quiet"

Suppressing everything but the tests summary.

"silent"

Suppressing all output.

"errors"

If parse errors are found in the TAP output, a note of this will be made in the summary report. To see all of the parse errors, set this argument to true:

  errors => 1

"directives"

If set to a true value, only test results with directives will be displayed. This overrides other settings such as "verbose", "failures", or "comments".

"stdout"

A filehandle for catching standard output.

"color"

If defined specifies whether color output is desired. If "color" is not defined it will default to color output if color support is available on the current platform and output is not being redirected.

"jobs"

The number of concurrent jobs this formatter will handle.

"show_count"

Boolean value. If false, disables the "X/Y" test count which shows up while tests are running.

Any keys for which the value is "undef" will be ignored.

"prepare"

Called by Test::Harness before any test output is generated.

This is an advisory and may not be called in the case where tests are being supplied to Test::Harness by an iterator.

"open_test"

Called to create a new test session. A test session looks like this:

    my $session = $formatter−>open_test( $test, $parser );
    while ( defined( my $result = $parser−>next ) ) {
        $session−>result($result);
        exit 1 if $result−>is_bailout;
    }
    $session−>close_test;

"summary"

  $harness−>summary( $aggregate );

"summary" prints the summary report after all tests are run. The first argument is an aggregate to summarise. An optional second argument may be set to a true value to indicate that the summary is being output as a result of an interrupted test run.






Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.