Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Regression report: RCov doesn't work again with 2.7.0 #479

NoICE opened this Issue Oct 19, 2011 · 3 comments


None yet
4 participants

NoICE commented Oct 19, 2011

Hi, I just scratched my head for about 15 minutes, debugging whatever came to my mind, then I landed at this issue.

I'm running rcov with rspec and ci_reporter like this:

ruby -S rcov -Ispec:lib --rails --exclude /gems/,/Library/,/usr/,lib/tasks,.bundle,config,/lib/rspec/,/lib/rspec-,spec ./spec///__spec.rb ./spec/_/*_spec.rb -- --require /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/ci_reporter-1.6.5/lib/ci/reporter/rake/rspec_loader --format CI::Reporter::RSpec

It seems it stopped working again... just blank output with rspec-(core|rails) 2.7.0.
Putting that require 'rspec/autorun' got it working again.


dchelimsky commented Oct 19, 2011

Thanks for pointing this out. Unfortunately, the way I had fixed #370 didn't work for every situation (rcov can be invoked in a few different ways) and caused trouble for some people where rspec/autorun was getting required when they didn't want it, so I had to back it out.

I need to add docs about this, so I'll leave this open until that's in place.

Your options right now requiring rspec/autorun as you did, or using rcov's own rake task, which will probably be your only option when we get to rspec-3.0.

NoICE commented Oct 19, 2011

Ouch, OK. Well... I'll have to look for some other way how to run rspec + rcov + ci_reporter in a single shot :)


charlietanksley commented Oct 16, 2012

@dchelimsky I'm looking to close this issue. Did you mean to document this only in the README somewhere, or do you think this is the kind of thing that needs a cucumber feature to document?

@alindeman alindeman closed this in f442561 Oct 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment