Sophie

Sophie

distrib > PLD > th > ppc > by-pkgid > 15d78bb914426f26b02f2d8752eacf1c

perl-Test-WWW-Mechanize-PSGI-0.39-1.noarch.rpm

Description:

PSGI is a specification to decouple web server environments from web
application framework code. Test::WWW::Mechanize is a subclass of
WWW::Mechanize that incorporates features for web application testing.
The Test::WWW::Mechanize::PSGI module meshes the two to allow easy
testing of PSGI applications.

Testing web applications has always been a bit tricky, normally
requiring starting a web server for your application and making real
HTTP requests to it. This module allows you to test PSGI web
applications but does not require a server or issue HTTP requests.
Instead, it passes the HTTP request object directly to PSGI. Thus you
do not need to use a real hostname: "http://localhost/" will do.
However, this is optional. The following two lines of code do exactly
the same thing:

$mech->get_ok('/action'); $mech->get_ok('http://localhost/action');

This makes testing fast and easy. Test::WWW::Mechanize provides
functions for common web testing scenarios. For example:

$mech->get_ok( $page ); $mech->title_is( "Invoice Status", "Make sure
we're on the invoice page" ); $mech->content_contains( "Andy Lester",
"My name somewhere" ); $mech->content_like( qr/(cpan|perl)\.org/,
"Link to perl.org or CPAN" );

Sources packages:

Other version of this rpm: