Test::WWW::Mechanize::HSS - Test HTTP::Server::Simple programs using WWW::Mechanize
use Test::WWW::Mechanize::HSS; use MyApp::Server; # A descendant from HTTP::Server::Simple # Construct your server my $s = MyApp::Server->new( ... ); my $mech = Test::WWW::Mechanize::HSS->new( server => $s ); $mech->get_ok('/');
This module implements the necessary glue to run code written for HTTP::Server::Simple and HTTP::Server::Simple::CGI using Test::WWW::Mechanize without needing to fire up an actual webserver.
This is an early release, hacked together to test one of my applications. So far it has worked well for me, but there sure are some corners that I haven't tested well. Tests and patches are welcome.
Max Maischein corion@cpan.org
corion@cpan.org
Copyright 2009 by Max Maischein corion@cpan.org.
This module is released under the same terms as Perl itself.
To install Test::WWW::Mechanize::HSS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::WWW::Mechanize::HSS
CPAN shell
perl -MCPAN -e shell install Test::WWW::Mechanize::HSS
For more information on module installation, please visit the detailed CPAN module installation guide.