
PANT::Test - PANT support for running tests

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

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

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.

None

Constructor for a test object. Requires an XML::Writer object as a parameter, which it will use for subsequent log construction.
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
The list of tests to run (.t files).
An optional directory to change to for the duration of the test

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

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

Copyright 2005 by Julian Onions
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.