1Plack::Test::Suite(3) User Contributed Perl DocumentationPlack::Test::Suite(3)
2
3
4

NAME

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

SYNOPSIS

9         use Test::More;
10         use Plack::Test::Suite;
11         Plack::Test::Suite->run_server_tests('Your::Handler');
12         done_testing;
13

DESCRIPTION

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
26       Developers writing Plack applications should look at "Plack::Test" for
27       testing, as subclassing "Plack::Handler" is for developing server
28       implementations.
29

AUTHOR

31       Tokuhiro Matsuno
32
33       Tatsuhiko Miyagawa
34
35       Kazuho Oku
36
37
38
39perl v5.32.0                      2020-12-02             Plack::Test::Suite(3)
Impressum