Using rcov with rspec2

I have using rcov together with rspec2 using the following rake task:

desc “Run all specs with rcov”
RSpec::Core::RakeTask.new(“test_cov”) do |t|
t.rcov = true
t.rcov_opts = %w{–rails --include views --exclude gems/,spec
/,features/,seeds/}
end

but since the latest beta, this doesn’t work anymore. Does anybody
have an idea what is going wrong?

The error i get is this:

`require’: no such file to load – spec_helper (LoadError)

The error i get is this:

`require’: no such file to load – spec_helper (LoadError)

The only solution I have found for this is to revert from rspec-rails
beta.22 to rspec-rails beta.20

I hoped the new rspec2.0.0.rc would fix it, but it doesn’t.

I hope anybody can shed any light on this?

On Tue, Oct 5, 2010 at 6:20 AM, nathanvda [email protected] wrote:

On Oct 4, 3:24 am, Will M. [email protected] wrote:

The error i get is this:

`require’: no such file to load – spec_helper (LoadError)

The only solution I have found for this is to revert from rspec-rails
beta.22 to rspec-rails beta.20

Please post replies inline or at the bottom (I moved yours from the
top).

I hoped the new rspec2.0.0.rc would fix it, but it doesn’t.

I hope anybody can shed any light on this?

I’ll need more information as rcov + rspec-2.0.0.rc is working just
fine for me. Please report this to
Issues · rspec/rspec-core · GitHub and include OS, ruby
version, and the full backtrace you are seeing.

On Tue, Oct 5, 2010 at 7:28 AM, David C. [email protected]
wrote:

I hoped the new rspec2.0.0.rc would fix it, but it doesn’t.

I hope anybody can shed any light on this?

I’ll need more information as rcov + rspec-2.0.0.rc is working just
fine for me. Please report this to
Issues · rspec/rspec-core · GitHub and include OS, ruby
version, and the full backtrace you are seeing.

Actually somebody just reported this to
Issues · rspec/rspec-rails · GitHub and I figured out the
problem and fixed it in rspec-rails.

I’ve also added Ensure that -Ispec is included in rcov_opts · Issue #172 · rspec/rspec-core · GitHub to
address this now that I understand the problem. Feel free to comment
on that issue rather than adding a new one.

Cheers,
David

On 5 okt, 15:17, David C. [email protected] wrote:

Please post replies inline or at the bottom (I moved yours from the top).
Actually somebody just reported this tohttp://github.com/rspec/rspec-rails/issuesand I figured out the
problem and fixed it in rspec-rails.

I’ve also addedhttp://github.com/rspec/rspec-core/issues/issue/172to
address this now that I understand the problem. Feel free to comment
on that issue rather than adding a new one.

Cheers,
David

Thanks David, that helped me out!