Test::Unit::TestRunner - unit testing framework helper class
use Test::Unit::TestRunner; my $testrunner = Test::Unit::TestRunner->new(); $testrunner->start($my_testcase_class);
This class is the test runner for the command line style use of the testing framework.
It is used by simple command line tools like the TestRunner.pl script provided.
The class needs one argument, which is the name of the class encapsulating the tests to be run.
wait for user confirmation between tests
version info
Framework JUnit authored by Kent Beck and Erich Gamma.
Ported from Java to Perl by Christian Lemburg.
Copyright (c) 2000 Christian Lemburg, <lemburg@acm.org>.
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Thanks go to the other PerlUnit framework people: Brian Ewins, Cayte Lindner, J.E. Fritz, Zhon Johansen.
Test::Unit::TestCase
Test::Unit::TestListener
Test::Unit::TestSuite
Test::Unit::TestResult
Test::Unit::TkTestRunner
For further examples, take a look at the framework self test collection (Test::Unit::tests::AllTests).
To install Test::Unit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Unit
CPAN shell
perl -MCPAN -e shell install Test::Unit
For more information on module installation, please visit the detailed CPAN module installation guide.