Skip to content
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 fails after upgrading from 2.6.0 to 2.8.0 #551

Closed
Confusion opened this issue Jan 11, 2012 · 1 comment
Closed

Rcov fails after upgrading from 2.6.0 to 2.8.0 #551

Confusion opened this issue Jan 11, 2012 · 1 comment

Comments

@Confusion
Copy link

I just upgraded from 2.6.0 to 2.8.0 and after that rcov fails to run. It produces no output at all and any check on coverage subsequently fails. Some quick googling yielded http://blog.thefrontiergroup.com.au/2011/05/rspec-2-6-0-and-rcov/ and indeed, adding

require 'rspec/autorun'

to the spec_helper.rb solved the issue. I guess that file is still intended to be required automatically?

@dchelimsky
Copy link
Contributor

We can't require it automatically because doing so means that just loading rspec into the environment means the specs will run. We have yet to come up with a reliable automatic way to do it, and until we do it's going to remain a burden on the user to require 'rspec/autorun'.

I'll leave this open as a reminder to improve the documentation around this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants