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 > Perl Modules

    Test::Aggregate 0.364

    Download button

    No screenshots available
    Downloads: 342  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.3/5)
    6 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Curtis Poe | More programs
    Perl Artistic License / FREE
    July 21st, 2008, 12:10 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Test::Aggregate description

    Can aggregate *.t tests to make them run faster.

    Test::Aggregate can aggregate *.t tests to make them run faster.

    SYNOPSIS

    use Test::Aggregate;

    my $tests = Test::Aggregate->new( {
    dirs => $aggregate_test_dir,
    } );
    $tests->run;


    WARNING: this is ALPHA code. The interface is not guaranteed to be stable.
    A common problem with many test suites is that they can take a long time to run. The longer they run, the less likely you are to run the tests. This module borrows a trick from Apache::Registry to load up your tests at once, create a separate package for each test and wraps each package in a method named run_the_tests. This allows us to load perl only once and related modules only once. If you have modules which are expensive to load, this can dramatically speed up a test suite.

    USAGE

    Create a separate directory for your tests. This should not be a subdirectory of your regular test directory. Write a small driver program and put it in your regular test directory (t/ is the standard):

    use Test::Aggregate;
    my $other_test_dir = 'aggregate_tests';
    my $tests = Test::Aggregate->new( {
    dirs => $other_test_dir
    });
    $tests->run;


    Take your simplest tests and move them, one by one, into the new test directory and keep running the Test::Aggregate program. You'll find some tests will not run in a shared environment like this. You can either fix the tests or simply leave them in your regular test directory. See how this distribution's tests are organized for an example.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    aggregate tests | test aggregator | Perl module | test | aggregator | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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