Skip Menu |

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

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

People
Owner: andy [...] hexten.net
Requestors: tom@eborcom.com (no email address)
Cc:
AdminCc:

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



Subject: Version 3 no longer supports the HARNESS_PERL_SWITCHES environment variable
Version 2 of Test::Harness used to support a HARNESS_PERL_SWITCHES. This was commonly used with Devel::Cover, which suggests the following early on in its documentation: cover -delete HARNESS_PERL_SWITCHES=-MDevel::Cover make test cover It seems version 3 no longer supports this: the example above doesn't generate a cover_db for me and I don't see any reference to the environment variable in TAP::Parser's code or documenation. Tom
Test::Harness 3 does support HARNESS_PERL_SWITCHES. I've just tried it here and it's definitely working. Could you add a test like this to your project: warn " # Switches: $ENV{HARNESS_PERL_SWITCHES}\n"; print "1..1\nok 1\n"; and do HARNESS_PERL_SWITCHES=-f make test and let me know what you see please?
Subject: Re: [rt.cpan.org #30862] Version 3 no longer supports the HARNESS_PERL_SWITCHES environment variable
Date: Tue, 20 Nov 2007 11:52:16 +0000
To: Andy Armstrong via RT <bug-Test-Harness [...] rt.cpan.org>
From: Tom Hukins <tom [...] eborcom.com>
On Tue, Nov 20, 2007 at 06:40:36AM -0500, Andy Armstrong via RT wrote: Show quoted text
> Test::Harness 3 does support HARNESS_PERL_SWITCHES. I've just tried > it here and it's definitely working.
Yes, you're right. I'm not sure how I managed to confuse myself otherwise. Apologies for the noise. Tom
Don't worry about it - it prompted me to add test coverage for HARNESS_PERL_SWITCHES which inexplicably we didn't have - so I'm grateful that you brought my attention to it :)