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