Changeset 30552
- Timestamp:
- 02/26/09 22:50:03 (4 years ago)
- Location:
- lang/perl/Test-Classy/trunk
- Files:
-
- 2 modified
-
Changes (modified) (1 diff)
-
lib/Test/Classy.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Test-Classy/trunk/Changes
r30542 r30552 1 1 Revision history for Test-Classy 2 3 0.06 2009/02/26 4 - removed the previous example. 2 5 3 6 0.05 2009/02/26 -
lang/perl/Test-Classy/trunk/lib/Test/Classy.pm
r30542 r30552 6 6 use Sub::Install qw( install_sub ); 7 7 8 our $VERSION = '0.0 5';8 our $VERSION = '0.06'; 9 9 10 10 my @tests; … … 217 217 If you want to use 'no_plan', declare it (plan "no_plan") beforehand by yourself, or use 'Test(no_plan)' attribute somewhere in your test classes. 218 218 219 This also helps when you want to run tests with various environments. Following is an example to test an L<Any::Moose> based project.220 221 (in your .t file)222 use Test::Classy;223 224 load_tests_from 'MyAnyMooseApp::Test';225 226 Test::More::plan(tests => Test::Classy->plan * 2);227 228 foreach my $moose (qw(Mouse Moose)) {229 SKIP: {230 eval "require $moose";231 Test::More::skip("requires $moose",232 Test::Classy->plan) if $@;233 234 Test::More::diag("testing $moose");235 local $ENV{ANY_MOOSE} = $moose;236 run_tests;237 }238 }239 240 219 =head2 reset 241 220
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)