-
Notifications
You must be signed in to change notification settings - Fork 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
rcov (0.9.9 java) - coverage aggregation issue #76
Comments
I'm seeing exactly the same thing with Jruby 1.6.2 and 0.9.9. I've created a example app to illustrate the problem. You can clone it here:
I've included the coverage reports from my last run, which I think was cucubmer_first. I've also included screenshots of example outputs from both runs. If you don't want to clone the example, you can see them in the README: Basically, it just doesn't seem to be aggregating the results at all. Whichever set of tests get run last are the ones the coverage report is based on. |
I just checked it on 1.8.7 and it behaves as expected: 100% coverage regardless of the run order. |
+1 -- I'm seeing this too. |
+1 with plain ruby 1.8.7 patch 334 |
I cloned the repo and ran both tasks. For both runs I only get 63.6% coverage, no matter which task I use. |
+1 |
I have the same problem with rcov and JRuby (tested 1.6.4 and 1.6.7 recently). Some quick investigation shows the problem is with loading the aggregate data (the gzipped, marshal serialization). Attempting to load the aggregate data outside of rcov with require 'rubygems'
gem 'rcov'
require 'rcov'
require 'zlib'
file = 'aggr.rcov'
Zlib::GzipReader.open(file) {|gz| old_data = Marshal.load(gz) } leads to
As a test, I hacked the rcov script to not gzip the marshalled data, and it then works correctly. |
As a temporary work-around for those that need this feature in JRuby right now (like me), I have forked version 0.9.11 of rcov and disabled gzipping of aggregate data. See the jruby_tmp branch at https://github.com/evilrich/rcov. You can use this, for example, by specifying in your Gemfile:
When I have some more time, I intend to investigate further the problem with gzip. |
Hi,
I am using jruby-1.6.1 with rcov (0.9.9 java) to run coverage report for my cucumber features and rspec tests. Everything works fine except it's not aggregating the data in the report. And there's no errors.
All the tests pass. And It's not aggregating the data as I can tell by seeing the controller get higher coverage with cucumber but later get dropped in the final report.
Here's the code. Please help.
The text was updated successfully, but these errors were encountered: