CatalystX-Test-Most

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

---
abstract: 'Test base pulling in L<Catalyst::Test>, L<Test::More>, L<Test::Fatal>, and L<HTTP::Request::Common> for unit tests on Catalyst applications.'
build_requires:
  ExtUtils::MakeMaker: 6.36
configure_requires:
  ExtUtils::MakeMaker: 6.36
distribution_type: module
dynamic_config: 1
generated_by: 'Module::Install version 1.06'
license: artistic_2
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html

MYMETA.json  view on Meta::CPAN

{
   "abstract" : "Test base pulling in L<Catalyst::Test>, L<Test::More>, L<Test::Fatal>, and L<HTTP::Request::Common> for unit tests on Catalyst applications.",
   "author" : [
      "unknown"
   ],
   "dynamic_config" : 0,
   "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120921",
   "license" : [
      "artistic_2"
   ],
   "meta-spec" : {
      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",

MYMETA.yml  view on Meta::CPAN

---
abstract: 'Test base pulling in L<Catalyst::Test>, L<Test::More>, L<Test::Fatal>, and L<HTTP::Request::Common> for unit tests on Catalyst applications.'
author:
  - unknown
build_requires:
  ExtUtils::MakeMaker: 6.36
configure_requires:
  ExtUtils::MakeMaker: 0
dynamic_config: 0
generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120921'
license: artistic_2
meta-spec:

README  view on Meta::CPAN

Name
    CatalystX::Test::Most - Test base pulling in Catalyst::Test, Test::More,
    Test::Fatal, and HTTP::Request::Common for unit tests on Catalyst
    applications.

Synopsis
     use CatalystX::Test::Most "MyApp";

     subtest "Tests with plain Catalyst::Test" => sub {
         ok request("/")->is_success, "/ is okay";
         is exception { request("/no-such-uri") }, undef,
            "404s do not throw exceptions";
         is request("/no-such-uri")->code, 404, "And do return 404";

README  view on Meta::CPAN

     # ok 3 - Tests with Test::WWW::Mechanize::Catalyst

Exported Functions from Other Packages
  Catalyst::Test
    Everything, so see its documentation: Catalyst::Test.
    CatalystX::Test::Most is basically an overloaded version of it.

  Test::More
    All of its exported functions; see its documentation: Test::More.

  Test::Fatal
    See "exception" in Test::Fatal.

  Test::WWW::Mechanize::Catalyst
    You have easy access to a Test::WWW::Mechanize::Catalyst object. There
    are no related functions, just the object methods.

New Functions
    *   "ctx"

        This is a wrapper to get the context object. It will only work on
        local tests (not remote servers).

lib/CatalystX/Test/Most.pm  view on Meta::CPAN

package CatalystX::Test::Most;
use strictures;
no warnings "uninitialized";
use HTTP::Request::Common ( qw{ GET POST DELETE PUT } );
use Test::More;
use Test::Fatal;
our $AUTHORITY = "cpan:ASHLEY";
our $VERSION = "0.05";
our @EXPORT = ( qw{ GET POST DELETE PUT },
                qw{ request ctx_request action_redirect },
                qw{ exception },
                qw{ ctx mech },
                grep { defined &{$_} } @Test::More::EXPORT );

my ( $App, $Args ); # Save for mech.
sub import {

lib/CatalystX/Test/Most.pm  view on Meta::CPAN

}

1;

__END__

=pod

=head1 Name

CatalystX::Test::Most - Test base pulling in L<Catalyst::Test>, L<Test::More>, L<Test::Fatal>, and L<HTTP::Request::Common> for unit tests on Catalyst applications.

=head1 Synopsis

 use CatalystX::Test::Most "MyApp";

 subtest "Tests with plain Catalyst::Test" => sub {
     ok request("/")->is_success, "/ is okay";
     is exception { request("/no-such-uri") }, undef,
        "404s do not throw exceptions";
     is request("/no-such-uri")->code, 404, "And do return 404";

lib/CatalystX/Test/Most.pm  view on Meta::CPAN

=head1 Exported Functions from Other Packages

=head2 Catalyst::Test

Everything, so see its documentation: L<Catalyst::Test>. L<CatalystX::Test::Most> is basically an overloaded version of it.

=head2 Test::More

All of its exported functions; see its documentation: L<Test::More>.

=head2 Test::Fatal

See C<exception> in L<Test::Fatal>.

=head2 Test::WWW::Mechanize::Catalyst

You have easy access to a L<Test::WWW::Mechanize::Catalyst> object. There are no related functions, just the object methods.

=head1 New Functions

=over 4

=item * C<ctx>



( run in 1.745 second using v1.01-cache-2.11-cpan-54e63673c56 )