Moose::Test - A Test Runner for the Moose test suite


Moose-Test documentation Contained in the Moose-Test distribution.

Index


Code Index:

NAME

Top

Moose::Test - A Test Runner for the Moose test suite

SYNOPSIS

Top

    # t/001-attr--nohook.t -- test bare class
    use Test::More tests => 1;
    use Moose::Test::Case;
    Moose::Test::Case->new->run_tests;

    # t/001-attr--immutable.t -- munge class before tests run
    use Test::More tests => 1;
    use Moose::Test::Case;
    Moose::Test::Case->new->run_tests(
        after_last_pm => sub {
            Class->meta->make_immutable;
        },
    )

    # t/001-attr/Class.pm
    package Class;
    use Moose;
    has name => (isa => 'Str');

    # t/001-attr/string.t
    my $obj = Class->new(name => "Lloyd");
    ok($obj, "Constructor works when validating a string");

DESCRIPTION

Top

This module provides an abstraction over the Moose test cases such that it makes it easier for them to be re-used in different contexts.

BUGS

Top

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Top

Stevan Little <stevan.little@iinteractive.com>

Shawn M Moore <sartak@bestpractical.com>

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT AND LICENSE

Top


Moose-Test documentation Contained in the Moose-Test distribution.

package Moose::Test;

our $VERSION   = '0.01';
our $AUTHORITY = 'cpan:STEVAN';

__END__