-
Notifications
You must be signed in to change notification settings - Fork 159
coverageAggregate returns different results each time rerun #64
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
Comments
Other people have reported this too. Also in your subject you said "coverageAggregate returns different results each time rerun", are you saying that the aggregate html is different each time you run it (as opposed to just bring wrong). |
It is wrong and different each time. If I run it four times I'll get two or three different coverage percentages. |
Ok thanks. Sounds like its losing statements in the map. I'll investigate. On 23 November 2014 at 23:05, Amos [email protected] wrote:
|
I can confirm this. I'm missing more than 75% of my classes in the final report. |
can you guys check something for me. Is the normal (non aggregated) output the same each time, or does that vary as well ? |
I hadn't noticed before since the non-aggregated was returning most of what I expected, but it does seem to be varying as well. Two runs and two out of six projects returned different percentages. |
Did you clean in between ?
|
I did not. |
If I do that i get consistent results I think. Which if true will help me
|
I ran "clean coverage test" twice and got different results on each. |
Ok thanks for checking.
|
Just to confirm that, differently from what I reported earlier, the Essentially the I'll check out the plugin's code and do some investigation myself, if you can provide any pointer as to the possible area that may cause the issue, it may help out. |
@agemooij @amosschallich @massenz Can you guys try version 1.0.1 which should address this issue. |
Did you also push the 1.0.1 version of scalac-soverage-plugin? I got this: |
1.0.1 now works and fixes both problems but unfortunately it also introduces a new one. See the comments on #13 for details. |
Just upgraded to 1.0.0 and am very excited about the improvements, especially coverageAggregate.
Currently when I run: sbt coverageAggregate it correctly finds all of my subproject's scoverage.xml files, but then doesn't seem to correctly combine them. One a small number of my classes show up in the aggregate file. (One subfile is 1900 lines, the final aggregate is only 92 lines).
Perhaps an unrelated bug, but the links within the aggregate HTML also don't point to the correct place for me.
Let me know what if any debug information that would be helpful.
The text was updated successfully, but these errors were encountered: