Changeset 30552

Show
Ignore:
Timestamp:
02/26/09 22:50:03 (4 years ago)
Author:
charsbar
Message:

Test-Classy: removed previous example; 0.06 -> CPAN

Location:
lang/perl/Test-Classy/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Test-Classy/trunk/Changes

    r30542 r30552  
    11Revision history for Test-Classy 
     2 
     30.06 2009/02/26 
     4  - removed the previous example. 
    25 
    360.05 2009/02/26 
  • lang/perl/Test-Classy/trunk/lib/Test/Classy.pm

    r30542 r30552  
    66use Sub::Install qw( install_sub ); 
    77 
    8 our $VERSION = '0.05'; 
     8our $VERSION = '0.06'; 
    99 
    1010my @tests; 
     
    217217If 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. 
    218218 
    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  
    240219=head2 reset 
    241220