Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: NATG [...] cpan.org
Cc: natg [...] shore.net
AdminCc:

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



CC: natg [...] shore.net
Subject: Allow command line args in test sources
It would be nice to allow command line arguments in the @tests passed to runtests. For example: $harness->runtests('t/foo.t -say hello','t/foo.t -say world'); Currently, I am working around this issue by setting parser_class and providing a 'new' that parses the args off the source string. But this seems a long way to go to solve an easy problem... Thanks, Nat
On Sun Dec 13 10:58:19 2009, NATG wrote: Show quoted text
> It would be nice to allow command line arguments in the @tests passed to > runtests. For example: > > $harness->runtests('t/foo.t -say hello','t/foo.t -say world'); > > Currently, I am working around this issue by setting parser_class and > providing a 'new' that parses the args off the source string. But this > seems a long way to go to solve an easy problem...
There's a change in the next release that I believe solves your problem. I'm planning to make that release in the next few days :)