GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLACK::TEST::SUITE (3)

.ds Aq ’

NAME

Plack::Test::Suite - Test suite for Plack handlers

CONTENTS

SYNOPSIS



  use Test::More;
  use Plack::Test::Suite;
  Plack::Test::Suite->run_server_tests(Your::Handler);
  done_testing;



DESCRIPTION

Plack::Test::Suite is a test suite to test a new PSGI server implementation. It automatically loads a new handler environment and uses LWP to send HTTP requests to the local server to make sure your handler implements the PSGI specification correctly.

Note that the handler name doesn’t include the Plack::Handler:: prefix, i.e. if you have a new Plack handler Plack::Handler::Foo, your test script would look like:



  Plack::Test::Suite->run_server_tests(Foo);



Developers writing Plack applications should look at Plack::Test for testing, as subclassing Plack::Handler is for developing server implementations.

AUTHOR

Tokuhiro Matsuno

Tatsuhiko Miyagawa

Kazuho Oku

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLACK::TEST::SUITE (3) 2015-06-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.