develooper Front page | perl.module.build | Postings from November 2012

Passing Options to Test Files

Thread Next
From:
John M. Gamble
Date:
November 6, 2012 17:23
Subject:
Passing Options to Test Files
Message ID:
3a773da4dae2788c99b10402d1d1c156.squirrel@webmail.ripco.com
I have tests in a module that take a long time to run. Strictly speaking,
the CPAN testers don't need to run all of them, so it makes sense to have
them automatically skipped, letting me run them manually when I want.

Reading the Module::Build::API document, I see that I can create my own
option (e.g., --Testall) using the get_options parameter. But it looks
like I can only pass information to the test files via tap_harness_args
to TAP::Harness.  Currently, all but two of my test files use Test::Simple,
with the remaining files using Test::More.

Do I have to re-write my test files to use TAP::Harness?

Thanks,
     -john


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About