NAME

Test::Presenter - A module for results Presentation.

SYNOPSIS

my $report = new Test::Presenter;

$report->close();
$report->output()
$report->dump();
$report->set_debug(0);
my $dbg = $report->get_debug();

DESCRIPTION

Test::Presenter is is used to create the initial Test::Presenter object for use in processing various test results. Test::Presenter operates around the DBXml database from Sleepycat Software. DBXml was used due to it's support for both XQuery and XPath, as well as it's ease of use and implementation with Perl.

Test::Presenter receives as input a TRPI-formatted XML file. These files can be generated with Test::Parser, or any other tool that supports the TRPI format as output. The TRPI format was chosen because it is robust enough to handle results from many different kinds of tests. This wide usability comes with a drawback, however, in that TRPI files can sometimes become overly large.

TRPI files are really used as an intermediate data format between raw test results and an intelligible easy to read set of test results. This set of test results can be fed into various tools for final presentation and further human analysis.

FUNCTIONS

new()

Purpose: Create a new Test::Presenter object.
Input: NA
Output: Test::Presenter perl object

close()

Purpose: Close the DBXml file safely (to prevent data corruption,
    etc)
Input: NA
Output: 1

output()

Purpose: Eventually use the Template::Toolkit module to output the
    results in a nice, easy to read format
Input: NA
Output: 1

dump()

Purpose: Used to dump the 'component' object to STDERR
Input: NA
Output: 1

set_debug()

Purpose: Turn on (or off) debugging statements.
Input: Integer (O to disable, 1-4 for debugging statements)
Output: debug level

get_debug()

Purpose: Return the debugging level that is currently set.
Input: None
Output: Integer (debug level)

AUTHOR

John Daiker <daikerjohn@gmail.com>

COPYRIGHT

Copyright (C) 2006 John Daiker. All Rights Reserved.

This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.