Mercurial > pub > Impl
view Lib/IMPL/Test/HarnessRunner.pm @ 84:e568c7c8b743
Minor changes to the test infrastructure
author | wizard |
---|---|
date | Wed, 14 Apr 2010 17:38:11 +0400 |
parents | 16ada169ca75 |
children | 4267a2ac3d46 |
line wrap: on
line source
package IMPL::Test::HarnessRunner; use strict; use warnings; use base qw(IMPL::Object IMPL::Object::Autofill IMPL::Object::Serializable); use IMPL::Class::Property; use Test::Harness; __PACKAGE__->PassThroughArgs; BEGIN { public property Strap => prop_all; } sub CTOR { my $this = shift; die new IMPL::InvalidArgumentException("The Strap parameter must be specified") unless $this->Strap; } sub RunTests { my ($this,@files) = @_; local $Test::Harness::Strap = $this->Strap; return runtests(@files); } sub ExecuteTests { my ($this,%args) = @_; local $Test::Harness::Strap = $this->Strap; return Test::Harness::execute_tests(%args); } 1;