New issue

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

Coverage do not work (with perl version manager) #1787

Closed
floreal opened this Issue Jul 26, 2018 · 9 comments

Comments

Projects
None yet
2 participants
@floreal
Copy link

floreal commented Jul 26, 2018

Hello,
I've been trying to use code coverage on some of my perl project, but I get no coverage result.
Here are the log when running my

/home/floreal/.plenv/versions/5.18.2/bin/perl -I/home/floreal/work/my-project/t/lib -I/home/floreal/work/RnD/my-project/lib /home/floreal/work/RnD/my-project/t/testsuite.t
 - PERL5OPT=-MDevel::Cover=-silent,1,-db,/home/floreal/.IdeaIC2018.2/system/coverage/my-project$testsuite_t.json,-dir,.
# test run

Process finished with exit code 0

Here is what displayed in the event log:

13:45	Perl5 Library Devel::Cover is Missing: Library is require to perform an action. Please, install it first

I use plenv and Carton so I modified script environment variables such as PERL5LIB and PATH to add appropriate pathes, and Devel::Cover is present in those.

I'm using IntellJ Idea CE 2018.2 Build IC-182-3684.101 with JVM 1.8.0_152 for amd64 architechture (OpenJDK)

Where can I find more log that could help solving this issue ?

@hurricup

This comment has been minimized.

Copy link
Collaborator

hurricup commented Jul 26, 2018

The problem is a .plenv i believe. There is no proper support for version managers yet. The only way I can see here is to close IDEA, open terminal, switch to 5.18.2 and start IDEA from terminal, so IDE has the proper environment.

@floreal

This comment has been minimized.

Copy link

floreal commented Jul 27, 2018

Hello, thanks for you answer. I tried it, and it din't work, I also tried installing a system-wide Devel::Cover library but nothing more happened.
I hope this message can be helpful.

@floreal floreal changed the title Coverage do not work Coverage do not work (with perl version manager) Jul 27, 2018

@hurricup

This comment has been minimized.

Copy link
Collaborator

hurricup commented Jul 27, 2018

Just in case, are you sure that you have a Devel::Cover installed for 5.18.2?

@floreal

This comment has been minimized.

Copy link

floreal commented Jul 27, 2018

Yes, for every versions of perl (the ones managed by plenv and those installed in my /usr directory)

@floreal

This comment has been minimized.

Copy link

floreal commented Jul 27, 2018

Oh, I should also mention that Coverage database is properly generated in ~/.IdeaIC2018.2/system/coverage/my-project$testsuite_t.json/ directory

@hurricup

This comment has been minimized.

Copy link
Collaborator

hurricup commented Jul 27, 2018

And you still getting
13:45 Perl5 Library Devel::Cover is Missing: Library is require to perform an action. Please, install it first?

@hurricup

This comment has been minimized.

Copy link
Collaborator

hurricup commented Jul 27, 2018

Could you please make a screenshot of your expanded dependencies in project tree?

@floreal

This comment has been minimized.

Copy link

floreal commented Jul 27, 2018

Here are some screenshots (couldn't fit everything inside only one). Do you expect to see some other libraries ?
devel-cover
devel-cover-2
image

@hurricup

This comment has been minimized.

Copy link
Collaborator

hurricup commented Oct 20, 2018

Relates to #320

hurricup added a commit that referenced this issue Oct 20, 2018

@hurricup hurricup added this to the 2018.3 milestone Oct 20, 2018

@hurricup hurricup closed this in 66568bc Oct 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment