Plack::Test::Suite - Test suite for Plack handlers
use Test::More; use Plack::Test::Suite; Plack::Test::Suite->run_server_tests('Your::Handler'); done_testing;
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::Handler::
Plack::Test::Suite->run_server_tests('Foo');
Tokuhiro Matsuno
Tatsuhiko Miyagawa
Kazuho Oku
To install Plack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack
CPAN shell
perl -MCPAN -e shell install Plack
For more information on module installation, please visit the detailed CPAN module installation guide.