Subject: | [PATCH] Devel::Cover test 't/at2.t' failure |
Date: | Wed, 10 Sep 2008 16:25:15 +0100 |
To: | bug-Devel-Cover [...] rt.cpan.org |
From: | "Dave Turner" <dave.c.turner [...] googlemail.com> |
Hi,
In trying to install Devel::Cover from CPAN, I have a failed test: t/at2.t
The problem is that my username 'dct25' contains the string 't2' so
when running the coverage test on the file 't2' the -select directive
(which selects the test name, i.e., 't2') overrides the -ignore
directive (which should ignore any modules installed in my local
$HOME/perl/lib) so it ends up testing a lot more code than it should
Clearly this is a local problem and it is unreasonable to avoid all
possible substrings of usernames. Clearly also I can hack around this
local issue by renaming the test, say, 't3'. I have done this and it
passes. Perhaps the -select directive for running the test could be
made more specific?
Attached is:
Devel-Cover--username-clash.patch: A one-line fix that works for me.
Devel-Cover--cpan-install-log.txt: the output from cpan -i Devel::Cover
Devel-Cover--prove-at2.{txt,err.bz2}: the results on STDOUT and STDERR
of running
DEVEL_COVER_DEBUG=1 prove -v t/at2.t
Cheers,
Dave
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.