PANT::Test - PANT support for running tests


PANT documentation  | view source Contained in the PANT distribution.

Index


NAME

Top

PANT::Test - PANT support for running tests

SYNOPSIS

Top

  use PANT::Test;

  $tester = new PANT::Test($xmlwriter);
  $tester->runtests(tests=>[@testlist], directory=>"test");

ABSTRACT

Top

  This is part of a module to help construct automated build environments.
  This part is for running tests.

DESCRIPTION

Top

This module is part of a set to help run automated builds of a project and to produce a build log. This part is designed to incorporate runs of the perl test suite.

EXPORTS

Top

None

METHODS

Top

new

Constructor for a test object. Requires an XML::Writer object as a parameter, which it will use for subsequent log construction.

runtests

This takes a list of files with tests in to run. The output is trapped and diverted to the logging stream. It appears as an html table. Table cells that refer to a failed test will have the html ID of "fail", and those that pass will be tagged with the ID "pass". This allows for appropriate syle sheet controls to highlight cells.

td#fail { background:red }

td#pass { background:green }

It takes the following options

tests=>[list of tests]

The list of tests to run (.t files).

directory=>somewhere

An optional directory to change to for the duration of the test

SEE ALSO

Top

Makes use of XML::Writer to construct the build log.

AUTHOR

Top

Julian Onions, <julianonions@yahoo.nospam-co.uk>

COPYRIGHT AND LICENSE

Top


PANT documentation  | view source Contained in the PANT distribution.