Julian Onions > PANT-0.17 > PANT::Test

Download:
PANT/PANT-0.17.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.15   Source  

NAME ^

PANT::Test - PANT support for running tests

SYNOPSIS ^

  use PANT::Test;

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

ABSTRACT ^

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

DESCRIPTION ^

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 ^

None

METHODS ^

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 ^

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

AUTHOR ^

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

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: