Egg::Helper::VirtualTest is the virtual test environment for Egg project.
SYNOPSIS
use Egg::Helper::VirtualTest;
my $vr= Egg::Helper::VirtualTest->new;
$vr->prepare(
controller => { egg_includes => [qw/ AnyPlugin /] },
create_files => @files,
config => {
hoo => '.....',
hoge => '...',
},
);
my $e= $vr->egg_context;
my $mech= $vr->mech_get('/request_uri');
print $mech->content;
An executable virtual environment is constructed for the test of the Egg project.
A virtual environment can control the composition by HASH passed to the prepare method.
Moreover, the result to a virtual request and the operation of the script are verifiable it according to WWW::Mechanize::CGI.
Product's homepage
Requirements:
· Perl