Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Test::Block 0.11

    Download button

    No screenshots available
    Downloads: 349  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.1/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Adrian Howard | More programs
    Perl Artistic License / FREE
    May 27th, 2008, 15:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Test::Block description

    A Perl module that allows you to specify fine granularity test plans.

    Test::Block is a Perl module that allows you to specify fine granularity test plans.

    SYNOPSIS

    use Test::More 'no_plan';
    use Test::Block qw($Plan);

    {
    # This block should run exactly two tests
    local $Plan = 2;
    pass 'first test';
    # oops. forgot second test
    };

    SKIP: {
    local $Plan = 3;
    pass('first test in second block');
    skip "skip remaining tests" => $Plan;
    };

    ok( Test::Block->all_in_block, 'all test run in blocks' );
    is( Test::Block->block_count, 2, 'two blocks ran' );

    # This produces...

    ok 1 - first test
    not ok 2 - block expected 2 test(s) and ran 1
    # Failed test (foo.pl at line 6)
    ok 3 - first test in second block
    ok 4 # skip skip remaining tests
    ok 5 # skip skip remaining tests
    ok 6 - all test run in blocks
    ok 7 - two blocks ran
    1..7
    # Looks like you failed 1 tests of 7.


    This module allows you to specify the number of expected tests at a finer level of granularity than an entire test script. It is built with Test::Builder and plays happily with Test::More and friends.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    fine granularity | granularity test plans | Perl module | granularity | test | plans



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM