Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 75565
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: info [...] narazaka.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.79
Fixed in: (no value)



Subject: cover -test fails Writing HTML output on Windows
`cover -test` fails on Windows with StrawberryPerl (perl v5.12.3) `cd D:Path\To\MyModule ; cover -test`: - mkdir D:Path\To\MyModule\PathToMyModulecover_db ! not D:Path\To\MyModule\cover_db - so Reading database from D:Path\To\MyModule\cover_db that is not existing and shows no summary - fails with following message: Unable to open file 'D:Path\To\MyModule\cover_db/coverage.html' [No such file or directory] It seems like that File::Spec returns path string separated with '\' on Windows and Devel::Cover::DB or Devel::Cover::Report::\u$Options-> {report} uses separater '/' so path handling is confusing. I roughly patched cover.bat: add '$dbname =~ s@\\@/@g;' at end of cover.bat line 199 (my $dbname = File::Spec->rel2abs(@ARGV ? shift @ARGV : "cover_db");) ...and `cover -test` works well; but I tested only `cover -test`. Please check this issue. (Sorry for my poor English
Thanks very much for this report. I believe that it is solved with a389629, but I've not been able to test it myself so please reopen this report if there is still a problem. Thanks again.