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
1
vote
0 answers

Warnings with RCov and Saikuro while installing Metrical

Having hard time installing some gems needed to get Metrical up and running. WARNING: Saikuro-1.1.0 has an invalid nil value for @cert_chain WARNING: rcov-0.9.9 has an invalid nil value for @cert_chain Quick Googling points to a bug in gem 1.7.1,…
GregC
  • 7,737
  • 2
  • 53
  • 67
1
vote
1 answer

simplecov-rcov is throwing a Encoding::UndefinedConversionError

I have the following setup Gemfile gem 'simplecov', require: false gem 'simplecov-rcov', require: false spec_helper.rb SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter SimpleCov.start 'rails' In the specs I have tests for…
mmsilviu
  • 1,211
  • 15
  • 25
1
vote
2 answers

How to exclude file in rcov and cucumber?

I want to exclude files like on this picture below, so it not necessary include to test, so how to solve this problem? https://i.stack.imgur.com/n9Lwk.png
abah
  • 91
  • 1
  • 1
  • 7
1
vote
1 answer

How to get Hudson to see rcov results?

I am currently working to integrate rcov with our Hudson server. I am able to run rcov via rake and get the results with out issue (see rake file below). When I run things via Hudson - calling the rake task - the tests with coverage are clearly…
Jordan Dea-Mattson
  • 5,791
  • 5
  • 38
  • 53
1
vote
3 answers

rcov outside rails

This may seem obvious but I don't find a way to run Rcov or coverMe outside a Rails project. I would like to use it with Rspec 2.5 I am using Ruby 1.9.2 so I guess this may be the problem. I also would like not to use rake tasks but a command on…
Jordi
  • 1,212
  • 2
  • 11
  • 25
1
vote
1 answer

Can you use RSpec, Shoulda, RCov?

I am attempting to get RCov to work with my RSpec and Shoulda test for a rails 3 app. It seems to work fine with my RSpec after using the Rake task below but all of the shoulda tests fail and I cant seem to find any documentation on getting these…
thargor
  • 453
  • 3
  • 11
1
vote
0 answers

RCOV underreporting when running the entire spec vs running individual spec file

I am using Rcov for code coverage. When I run the entire spec folder, it underreports the coverage as 9% for that particular file. (I am sure the code is getting covered). When I run only that particular spec file it reports the coverage as 98% for…
1
vote
1 answer

Error while executing the rcov report, rails stats report and brakeman warnings from Jenkins

I am using Jenkins for deployment process and it works fine. When i try to take rcov report rails stats report and brakeman warnings. [ubuntu@xx.xxx.xxx.xx] executing command ** [out :: ubuntu@xx.xxx.xxx.xx] Starting Unicorn.. command finished in…
krs
  • 1,467
  • 5
  • 17
  • 30
1
vote
1 answer

When trying to run Rcov with Rails 3 application, I am getting this error

Command Used: bundle exec rcov -I lib test/unit/account_test.rb --rails Ruby Version: ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] RCov version: 0.5.0.1 *** glibc detected *** ruby1.8: munmap_chunk(): invalid pointer: 0x0aa49820 *** Please…
Virtual
  • 2,111
  • 5
  • 17
  • 27
1
vote
1 answer

Using SimpleCov with nginx and passenger

We have an application written in Rails 3 which we deploy to Ubuntu servers running nginx/Passenger. We run a suite of tests against a test server using Watir. I have SimpleCov installed and running locally. It works as expected on the test server…
Charles
  • 11
  • 2
0
votes
1 answer

Confused about simplecov and rspec in rails

This is code in a model: def find_tech Category.find_by_name("tech") end and this is the rspec test: x = Category.find_tech x.name.should == "tech" and the test passes. But rcov doesn't think so. First of all why not ? Second, if I do…
cbron
  • 4,036
  • 3
  • 33
  • 40
0
votes
1 answer

Rspec2 issue with Rcov

In my Rakefile, I have a task defined like this: namespace :test do desc "Run all specs." RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = 'spec/**/*_spec.rb' t.verbose = false end RSpec::Core::RakeTask.new(:coverage) do |t| …
Tiago Fernandez
  • 1,453
  • 3
  • 19
  • 36
0
votes
1 answer

How do I see the statistics for rcov from the command line?

I'm running the built-in rake task to generate rcov reports: rake spec:rcov This generate files in my coverage directory, but I would like to see some aggregate stats output to the command console. Something like the total coverage and number of…
nimblegorilla
  • 1,183
  • 2
  • 9
  • 19
0
votes
1 answer

Cofiguration Rmetrics with Rcov in hudson error

When I attempt to save a job that runs code coverage tests and is configured to publish an rcov report I get the error message listed below and the changes I made aren't saved. This problem cropped up with Hudson version 1.362 and exists in 1.363.…
Sinal
  • 1,155
  • 5
  • 17
  • 35
0
votes
1 answer

Trace only class under test with rcov

I want to start rcov for a single test but the execution took several seconds/minutes since rcov seems to load the complete applications and starts to trace all source files. I'm only interested in the rcov report for the class under test. To…
sschmeck
  • 7,233
  • 4
  • 40
  • 67