Moose::Test - A Test Runner for the Moose test suite
# 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");
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.
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.
Stevan Little <stevan.little@iinteractive.com>
Shawn M Moore <sartak@bestpractical.com>
Yuval Kogman <nothingmuch@woobling.org>
Copyright 2008 Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Moose::Test, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Moose::Test
CPAN shell
perl -MCPAN -e shell install Moose::Test
For more information on module installation, please visit the detailed CPAN module installation guide.