|
NAMEMoose::Test - A Test Runner for the Moose test suiteSYNOPSIS# 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"); DESCRIPTIONThis module provides an abstraction over the Moose test cases such that it makes it easier for them to be re-used in different contexts.BUGSAll 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.AUTHORStevan Little <stevan.little@iinteractive.com>Shawn M Moore <sartak@bestpractical.com> Yuval Kogman <nothingmuch@woobling.org> COPYRIGHT AND LICENSECopyright 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.
Visit the GSP FreeBSD Man Page Interface. |