-
Notifications
You must be signed in to change notification settings - Fork 26
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
Uncovered lines, but no red lines in HTML file #25
Comments
This could be a duplicate of #24. All coverage information comes from the Erlang coverage utility. The job of coverex is to generate nicely formatted reports. I use the analysis-functions from Do you have an example for your case, so I can take a look at? |
If this is still an issue, I have a very small codebase which is demonstrating this. LMK and I can send it to you. (FWIW, I am also seeing red lines where they probably shouldn't be.) |
Yes, I am interested to understand whether it's an issue with |
Here you go, about as minimal as it gets. 😄 |
Ouch. I get also very interesting numbers on the console for that file: 42% coverage is not the intuitively expected value of 75% :-/ My initial guess is that macro construct of of |
IMHO (and understand that I'm very new to Elixir) |
@alfert: I don't know if I understand this correctly, but for me (I'm new in Elixir too) it looks like (in this example) that macro calls are never covered if there are not in functions that was called in tests. How about to write test to force recompile all project files? If I good understand after compile all macro outside methods will be called to prepare modules, so they would be covered, right? |
@Eiji7 if that's the case, the flag |
The |
In SpryCov I started not reporting If you want to try it out I created a repo with scouten's sample here https://github.com/tiagoefmoraes/coverex-bug-demo/branches, just checkout a branch and run This is the report before and after this change.
And here is the commit that does that |
I have multiple modules where Module Coverage Report says there are uncovered lines, but the Coverage Source code shows no red. Where are the missing lines? Is there some way to see how the count is being generated so I can find the missing lines outside of the Coverage Source code html?
The text was updated successfully, but these errors were encountered: