Skip Menu |
 

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 30676
Status: resolved
Priority: 0/
Queue: Test-Harness

People
Owner: andy [...] hexten.net
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: TEST_IN_PARALLEL=1 make test
Download (untitled) / with headers
text/plain 288b
I'm rather fond of the ExtUtils::MakeMaker, other use the Modules::Build ... I hadn't prove until today and I wouldn't have tried it where it not for the new -j option. I'm wondering about an env var that enables tests in parallel from test_harness() so I can turn it on without prove.
Subject: TEST_IN_PARALLEL="-j 9" make test
Download (untitled) / with headers
text/plain 593b
On Mon Nov 12 13:36:43 2007, http://voltar.org/jet wrote: Show quoted text
>I'm wondering about an env var that enables >tests in parallel from test_harness() so I can turn >it on without prove.
Possibly, though it would have to be more than a simple boolean. However, enabling this for the *compatibility* layer may not be the best course. I would much rather see new versions of ExtUtils::MakeMaker and Module::Build use the TAP::Harness API directly (especially since many other various toolchain problems are solved by upgrading those -- so requiring that for the new features seems fair.) --Eric
Download (untitled) / with headers
text/plain 897b
I agree completely with Eric... *BUT* because we want people to be able to play with parallel testing as easily possible I've implemented an env variable called HARNESS_OPTIONS. Having worked with me for a little while I'm sure Eric expects that kind of ornery behaviour by now :) ===8<--- =item C<HARNESS_OPTIONS> Provide additional options to the harness. Currently supported options are: =over =item C<< j<n> >> Run <n> (default 9) parallel jobs. =item C<< f >> Use forked parallelism. =back Multiple options may be separated by colons: HARNESS_OPTIONS=j9:f make test ===8<--- That will be available in 3.02 or you can grab the latest source from http://svn.hexten.net/tapx/trunk I agree that it's ugly and that we want to steer people away from the Test::Harness legacy interface - but please test the parallel support and report any problems. Thanks for the suggestion.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.