We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to do cover -db /tmp/cover_db with v1.38.
cover -db /tmp/cover_db
Unknown option: db Invalid command line options at /[omitted]/lib/perl5/x86_64-linux/Devel/Cover/Report/Html_minimal.pm line 714.
I tried adding it as HARNESS_PERL_SWITCHES=-MDevel::Cover=-db,/tmp/cover_db and that didn't help either.
HARNESS_PERL_SWITCHES=-MDevel::Cover=-db,/tmp/cover_db
Thanks.
The text was updated successfully, but these errors were encountered:
In bin/cover I found it's undocumented that I can run it as cover /tmp/cover and it will shift the DB path from @ARGV.
bin/cover
cover /tmp/cover
@ARGV
Sorry, something went wrong.
Not sure how to open a PR since I can't push my branch but here is "the solution":
diff --git a/lib/Devel/Cover.pm b/lib/Devel/Cover.pm index ec9422dd..21063330 100644 --- a/lib/Devel/Cover.pm +++ b/lib/Devel/Cover.pm @@ -1331,6 +1331,12 @@ To alter default values: perl -MDevel::Cover=-db,cover_db,-coverage,statement,time yourprog args +To report from or delete a DB file in an alternate location: + + perl -MDevel::Cover=-db,/tmp/cover_db + cover /tmp/cover_db + cover /tmp/cover_db -delete + =head1 DESCRIPTION This module provides code coverage metrics for Perl. Code coverage metrics
@hedges333: fwiw, to create a PR, you'd first use https://github.com/pjcj/Devel--Cover/fork to create a fork, and then push your branch to your fork, and finally create the PR to this repository.
No branches or pull requests
Trying to do
cover -db /tmp/cover_db
with v1.38.I tried adding it as
HARNESS_PERL_SWITCHES=-MDevel::Cover=-db,/tmp/cover_db
and that didn't help either.Thanks.
The text was updated successfully, but these errors were encountered: