- Name: perl-Test-WWW-Mechanize-PSGI
- Version: 0.39
- Release: 1
- Epoch:
- Group: Development/Languages/Perl
- License: GPL v1+ or Artistic
- Url: https://metacpan.org/release/Test-WWW-Mechanize-PSGI
- Summary: Test::WWW::Mechanize::PSGI - Test PSGI programs using WWW::Mechanize
- Architecture: noarch
- Size: 23152
- Distribution: PLD
- Vendor: pld
- Packager:
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" );
- OptFlags: -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic
- Cookie:
- Buildhost: ymir
Sources packages:
Other version of this rpm: