Questions tagged [rcov]

For issues relating to the Rcov coverage tool for Ruby.

Rcov is a code coverage tool for . It is commonly used for viewing overall test coverage of target code. It features:

  • cross-referenced XHTML and several kinds of text reports
  • support for easy automation with Rake
  • colorblind-friendliness

Resources:

48 questions
3
votes
1 answer

Why is RCov excluding views and including comments?

I am using Rails 3, RSpec 2 and the rcov gem. I am running rcov on my specs with the following rake task: desc "Run all specs with rcov" RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t| t.rcov = true t.pattern = "./spec/**/*_spec.rb"…
Daryn
  • 3,394
  • 5
  • 30
  • 41
3
votes
1 answer

RCov started analyzing loaded libs (including Rdoc itself) – when using rvm (Ruby Version Manager)

Context rcov 0.9.8 2010-02-28 ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.3.0] rvm 0.1.38 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] System Ruby (rvm use system): ruby 1.8.7 (2010-01-10 patchlevel 249)…
Stephan
  • 75
  • 1
  • 9
2
votes
1 answer

Rcov show files wih 0% code coverage not considered

I'm currently running rcov in a Rails Project (ruby 1.8.7). I let Jenkins take care of the overview of the code coverage. Unfortunately only files that have a code coverage greater than 0.0% are shown. This leads to a wrong total coverage. Is there…
leifg
  • 8,668
  • 13
  • 53
  • 79
2
votes
1 answer

Realized covariance estimator

I want to estimate the covariance matrix using high-frequency data in Julia. I wish to start with using the realized covariance estimator. Thus, is there any available Julia code to estimate using rcov?
Shahal
  • 31
  • 5
2
votes
0 answers

Problem installing rcov-0.8.1.2.0 on OS X

I have a rails 3.0.7 application that is failing to load the development console. I keep getting the error: Could not find rcov-0.8.1.2.0 in any of the sources Try running `bundle install`. When I do, the it keeps failing to install that gem. I…
polygone
  • 298
  • 2
  • 14
2
votes
1 answer

what is the best way to measure code coverage against a single spec with ruby?

I typically do rake spec:rcov but that measures code coverage across all tests. I would like a way to measure code coverage from one spec to help ensure that each model's spec is testing the full model rather relying on side effects in other…
nimblegorilla
  • 1,183
  • 2
  • 9
  • 19
2
votes
1 answer

Metric Fu: RCov fails to load spec_helper

I am trying to run metric_fu on a Rails 3 application. All is good, with the exception of rcov. I have RSpec configured and my tests follow the spec/**/*.rb format and run fine in RSpec. Trying to check coverage with rcov, however, I get the…
Eric M.
  • 5,399
  • 6
  • 41
  • 67
2
votes
3 answers

Metric-Fu/Rcov "No File To Analyze"

I'm trying to get metric-fu running on a rails project I'm working with. Every time it runs the rcov portion of the metrics I get: ** Invoke metrics:all (first_time) ** Execute metrics:all No file to analyze was found. All the files loaded by rcov…
Jade Robbins
  • 163
  • 5
2
votes
1 answer

RCov doesn't work

I am currently developing a Ruby gem and want to create metrics. I am using 'metric_fu', but RCov seems to leave my specs. Here is my metric_fu configuration: MetricFu::Configuration.run do |config| config.metrics = [:churn, :saikuro,…
brainfck
  • 9,286
  • 7
  • 28
  • 29
2
votes
1 answer

RCov with JRuby

I have a project I want to get code coverage on. It's just a standard JRuby project not on Rails and I was wondering how to get RCov to work. I have been trying for a long time to get results and I just don't know whats going on. I get a coverage…
nobody
  • 7,803
  • 11
  • 56
  • 91
2
votes
2 answers

cucumber + selenium + rcov =?

Is it possible to measure coverage using selenium-driven features?
Eugene
  • 448
  • 4
  • 12
1
vote
1 answer

Rcov showing spec'd methods as not covered

I kind of have a mess going right now, but the gist is I can run rake spec:rcov successfully and get a report but all it shows as being covered is the "def" lines of my code. None of the code inside the methods is being run according to…
gwgeller
  • 247
  • 1
  • 5
  • 16
1
vote
0 answers

rcov code coverage issue

I am using rcov (0.9.11), ruby 1.8.7, Rails 3.1, spec 2.7. The coverage report shows some of the code as having 0% coverage but I have test coverage for it. When I modify the code with 0% coverage, I get failing tests. I also found an open bug on…
bparanj
  • 433
  • 2
  • 6
  • 15
1
vote
1 answer

Rcov does not exclude gems when running rake spec:rcov

I use Rspec to develop and test custom extensions for Radiant. When running rake spec:rcov in the extension dir, it runs all tests from my spec folder but generates coverage files for all gems that I have included within my Gemfile. I tried putting…
auralbee
  • 8,741
  • 4
  • 29
  • 36
1
vote
1 answer

Column name for timestamps in xts format and the highfrequency package

I have converted a financial data frame to an xts format in R. But, it drops the header for the date column. EURAUD EURCAD EURGBP EURHKD 2013-10-01 00:00:00 1.45070 1.39638 0.83539 10.48859 2013-10-01 00:01:00 1.45058…
Shahal
  • 31
  • 5