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

Simple-rcov doesn't see all models #15

Open
Draqun opened this issue Jul 16, 2015 · 3 comments
Open

Simple-rcov doesn't see all models #15

Draqun opened this issue Jul 16, 2015 · 3 comments

Comments

@Draqun
Copy link

Draqun commented Jul 16, 2015

Hi. I'm new in RoR and I have a little problem with your gem. In my situation he doesn’t see a few models

app/
  models/
     data_set/
       user.rb <- 
     synchronization_report/
       data_set.rb <- not included in the report
       data_area.rb <- not included in the report
       job.rb
   alert_definiion.rb
   alert_sent_history.rb
   data_set.rb <- not included in the report
   data_set_synch_agent.rb
   exchange_server.rb
   general_setting.rb
   synch_agent.rb
   synchronization_report.rb <- not included in the report
   text_placeholder.rb
   user.rb <- not included in the report

In my spec_helper.rb I add

require 'simplecov'
require 'simplecov-rcov'

SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
SimpleCov.start 'rails' do
  add_filter "/vendor/"
  add_filter "/ruby_gems/"
  add_filter "/spec/"
end
Rails.application.eager_load!

code coverage for datasynchronizatorms 2015-07-16 11-01-16

What is wrong with my configuration?

Best regards.

@JaneCoder
Copy link

I'm having the same issue. I'll post back if I find a solution.

@Draqun
Copy link
Author

Draqun commented Aug 25, 2015

O. I forgot about this post. I found solution. I generated a rails_helper and I put simplecov-rcov code on the top of this file.

@JaneCoder
Copy link

Oh, Thanks!

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

No branches or pull requests

2 participants