JRuby Rcov and Rspec problem

When I run Rcov using JRuby, the Rcov report always includes some

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


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’ ]

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

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

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs