logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Tokuhiro Matsuno

       Tatsuhiko Miyagawa

       Kazuho Oku

perl v5.38.2                                       2024-01-20                            Plack::Test::Suite(3pm)

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.

Name

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

Synopsis

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

See Also