1Plack::Test::Suite(3) User Contributed Perl DocumentationPlack::Test::Suite(3)
2
3
4
6 Plack::Test::Suite - Test suite for Plack handlers
7
9 use Test::More;
10 use Plack::Test::Suite;
11 Plack::Test::Suite->run_server_tests('Your::Handler');
12 done_testing;
13
15 Plack::Test::Suite is a test suite to test a new PSGI server
16 implementation. It automatically loads a new handler environment and
17 uses LWP to send HTTP requests to the local server to make sure your
18 handler implements the PSGI specification correctly.
19
20 Note that the handler name doesn't include the "Plack::Handler::"
21 prefix, i.e. if you have a new Plack handler Plack::Handler::Foo, your
22 test script would look like:
23
24 Plack::Test::Suite->run_server_tests('Foo');
25
27 Tokuhiro Matsuno
28
29 Tatsuhiko Miyagawa
30
31 Kazuho Oku
32
33
34
35perl v5.12.3 2011-07-03 Plack::Test::Suite(3)