Forum: JRuby JRuby Rcov and Rspec problem.

Posted by Benyi Wang (Guest)
on 2010-08-24 00:02
(Received via mailing list)
When I run Rcov using JRuby, the Rcov report always includes some 
libraries.

JRuby 1.5.1
rcov 0.9.8
rspec 1.3.0
ci_reporter 1.6.2

Here is my Rake file.

require 'rake'
require 'spec/rake/spectask'
require 'ci/reporter/rake/rspec'

task :default => :test

ENV["CI_REPORTS"]="spec-reports"

task :test => [ "ci:setup:rspec", :spec ]

desc "Run all examples"
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.spec_opts = [ "--diff" ]
  t.rcov = true
  t.rcov_opts = [ '--exclude', 'spec' ]
end

I run command "jruby --debug -S rake"

Then I will find "xxx-jruby-1_5_1-lib-ruby-1_8-time_rb.html" for class 
Time.

If I run other Ruby interpreter, it won't have this issue.

Does somebody have the same issue? And how to fix it.

Thanks.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.