Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Test::Tester::CaptureRunner 0.103

    Download button

    No screenshots available
    Downloads: 347  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Fergal Daly | More programs
    Perl Artistic License / FREE
    November 1st, 2006, 12:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Test::Tester::CaptureRunner description

    Test::Tester::CaptureRunner is a Perl module that provides help testing test modules built with Test::Builder.

    Test::Tester::CaptureRunner is a Perl module that provides help testing test modules built with Test::Builder.

    SYNOPSIS

    use Test::Tester tests => 6;

    use Test::MyStyle;

    check_test(
    sub {
    is_mystyle_eq("this", "that", "not eq");
    },
    {
    ok => 0, # expect this to fail
    name => "not eq",
    diag => "Expected: 'this'nGot: 'that'",
    }
    );

    or

    use Test::Tester;

    use Test::More tests => 3;
    use Test::MyStyle;

    my @results = run_tests(
    sub {
    is_database_alive("dbname");
    },
    {
    ok => 1, # expect the test to pass
    }
    );

    # now use Test::More::like to check the diagnostic output

    like($result[1]->{diag}, "/^Database ping took \d+ seconds$"/, "diag");

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    help testing | test modules | Perl module | Test::Tester::Captur | help | testing

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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