The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DTS_UT::Model::UnitTestExec - model implementation for MVC architeture

DESCRIPTION

DTS_UT::Model::UnitTestExec is a model of MVC implementation of CGI::Application. It executes the unit tests and returns the values to the controller.

EXPORTS

Nothing.

METHODS

new

Creates a new DTS_UT::Model::UnitTestExec object.

Expects as parameters (in the following order):

1 complete pathname of the directory that will be used to hold temporary files.
2 the YAML file used for unit test configuration.

Returns a DTS_UT::Model::UnitTestExec object.

run_tests

Execute the defined tests for one or more packages.

Expects as parameter an array reference with package(s) name(s) to test.

Returns an array reference with the following structure:


	array reference -> [n] -> { 
		package      => package name
		ok           => tests that are OK
		max          => total number of tests executed
		failed       => total number of tests that failed
		failed_tests => array reference -> [n] = name of the test
	}

SEE ALSO

AUTHOR

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Alceu Rodrigues de Freitas Junior

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.