rcov
- URL
- http://eigenclass.org/hiki.rb?rcov
- Author(s)
- Mauricio Fernandez
- Summary
- rcov is a code coverage tool for Ruby. It is commonly used for viewing overall test unit coverage of target code. It features fast execution (20-300 times faster than previous tools), multiple analysis modes, XHTML and several kinds of text reports, easy
Comments
rcov
(0.9.9)
is Failing
for Andrew Grimm (Windows, 7 months ago)
For ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]:
It installs (Greg T's problem was probably that he was using Rubygems 1.7.1 rather than 1.6.2 or 1.7.2 - see the Stack Overflow question "Rails 3 install error: “invalid value for @cert_chain”").
However, which lines are described as covered and which lines aren't is completely arbitrary. I assume it's a problem with rcov on 1.9 rather than rcov in general, though I haven't checked.
rcov
(0.9.9)
is Failing
for Greg T (Mac OSX, 8 months ago)
No problem with gem install, however, attempting to run the rcov task `rake spec:rcov` fails with error:
.../gems/rcov-0.9.9/lib/rcov/file_statistics.rb:115:in `block in is_code?': invalid byte sequence in US-ASCII (ArgumentError)
RubyOnRails version 3.0.5
Ruby version ruby-1.9.2-p180
Mac OSX 10.6.7
rcov
(0.9.9)
is Failing
for Jeena Paradies (Mac OSX, 9 months ago)
ERROR: While executing gem ... (Gem::FormatException)
rcov-0.9.9 has an invalid value for @cert_chain
rcov
(0.9.9)
is Failing
for Frederick Cheung (Mac OSX, 10 months ago)
It half works, with a monkey patch similar to Kresimir's. However the metrics we got were substantically different than when running under ruby 1.8. As of a few week ago the readme no longer claims that 1.9 will work.
rcov
is Working
for Aperstoorne (other, 11 months ago)
rcov
(0.9.9)
is Working
for Kresimir Bojcic (GNU/Linux, about 1 year ago)
Works after adding force_encode to line 115 of rcov-0.9.9/lib/rcov/file_statistics.rb file so it looks like
if /^=begin\b/ =~ line.force_encoding("utf-8")
rcov
(0.9.9)
is Working
for Filip Tepper (Mac OSX, about 1 year ago)
$ ruby -v
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.5.0]
rcov
(0.9.9)
is Working
for Jakub Arnold (GNU/Linux, about 1 year ago)
$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
$ gem install rcov
Building native extensions. This could take a while...
Successfully installed rcov-0.9.9
1 gem installed
rcov
(relevance-rcov 0.9.2.1)
is Working
for monty (Windows, about 1 year ago)
Looks like I got gem install relevance-rcov to work in windows. This was a pain, so thought I'd share.
1. Install MS Visual C++ Express 10.0
2. From command prompt, run vcvars32.bat to set environment for MSVC command line cl.exe
3. Tweak lib/ruby/1.8/i386-mswin32/config.h to trap _MSC_VER < 1200 instead of _MSC_VER != 1200
4. Tweak lib/ruby/1.8/i386-mswin32/env.h to export ruby_frame by inserting __declspec(dllimport) between "extern" and "struct FRAME" as follows:
extern __declspec(dllimport) struct FRAME ...
I did that, and now gem install relevance-rcov --source http://gems.github.com works!
monty
rcov
(rcov-0.9.8)
is Failing
for Christian Proinger (Windows, about 1 year ago)
Building native extensions. This could take a while...
ERROR: Error installing rcov:
ERROR: Failed to build gem native extension.E:/Entwicklung/ruby/bin/ruby.exe extconf.rb
creating Makefilenmake
Der Befehl "nmake" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
rcov
(0.9.8)
is Failing
for Erik DeBill (GNU/Linux, about 1 year ago)
It doesn't count the first and last lines of methods (def/end).
rcov
(0.9.8)
is Failing
for Efrén Fuentes (Mac OSX, about 1 year ago)
Works fine! But produce a different coverage report. ruby 1.8.7 got 100% coverage, ran the same spec in 1.9.1 got 65.8%
rcov
(ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux])
is Failing
for Sylvain (GNU/Linux, over 2 years ago)
Ubuntu
Linux vm-linux-s 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linuxrcov (0.9.7.1)
my code use UTF-8 encoding.
26 tests, 112 assertions, 0 failures, 0 errors, 0 skips
/var/lib/gems/1.9.1/gems/rcov-0.9.7.1/lib/rcov/file_statistics.rb:115:in `block in is_code?': invalid byte sequence in US-ASCII (ArgumentError)
rcov
(0.9.7.1)
is Failing
for Michel Demazure (GNU/Linux, over 2 years ago)
same error as in Windows below
rcov
(0.9.6)
is Failing
for Michel Demazure (Windows, over 2 years ago)
Compiled with Luis Molina's mingw DevKit
Encoding problem : ~ is not recognized.F:\dev\ruby\DMX\lib>rcov start_window.rb
F:/Ruby19/lib/ruby/gems/1.9.1/gems/rcov-0.9.6/lib/rcov/file_statistics.rb:115:in
`block in is_code?': invalid byte sequence in US-ASCII (ArgumentError)
rcov
(0.9.2.1)
is Working
for Gourav (Windows, over 2 years ago)
Rcov failing on windows:
D:\project>gem install relevance-rcov
Building native extensions. This could take a while...
ERROR: Error installing relevance-rcov:
ERROR: Failed to build gem native extension.D:/ruby/bin/ruby.exe extconf.rb
creating Makefilenmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.Gem files will remain installed in D:/ruby/lib/ruby/gems/1.8/gems/relevance-rcov-0.9.2.1 for inspection.
Results logged to D:/ruby/lib/ruby/gems/1.8/gems/relevance-rcov-0.9.2.1/ext/rcovrt/gem_make.out
rcov
(0.9.6)
is Working
for Rolf Timmermans (Mac OSX, over 2 years ago)
rcov (0.9.6) installed with gemcutter is working perfectly.
rcov
is Working
for mtkd (Mac OSX, over 2 years ago)
Fixed the issue using:
http://lojic.com/blog/2009/02/26/setup-shoulda-and-rcov-for-rails-222/It was happening because of Shoulda
rcov
(0.9.2.1)
is Failing
for mtkd (Mac OSX, over 2 years ago)
.../.rvm/gems/ruby/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/file_statistics.rb:115:in `block in is_code?': invalid byte sequence in US-ASCII (ArgumentError)
rcov
is Failing
for Kresimir Bojcic (GNU/Linux, over 2 years ago)
Same error as Peter: invalid byte sequence in US-ASCII
rcov
(0.9.1.1)
is Failing
for Peter Wagenet (Mac OSX, over 2 years ago)
Dies with the error:
.../relevance-rcov-0.9.1.1/lib/rcov/file_statistics.rb:115:in `block in is_code?': invalid byte sequence in US-ASCII (ArgumentError)
rcov
(0.9.0)
is Failing
for Peter Wagenet (Mac OSX, over 2 years ago)
relevance-rcov runs fine but is reporting incorrectly. Appears to be the same issue as Tan Kwang How.
rcov
(0.9.0)
is Failing
for Tan Kwang How (GNU/Linux, over 2 years ago)
Works fine! But produce a different coverage report. ruby 1.8.7 got 100% coverage, ran the same spec in 1.9.1 got 90+%.....
rcov
(0.8.3.4)
is Working
for James Thompson (Mac OSX, over 2 years ago)
relevance-rcov from Github working flawlessly.
rcov
is Failing
for anu (Windows, over 2 years ago)
Hi,
relevance-rcov unable to install on windows..Building native extensions. This could take a while...
ERROR: Error installing relevance-rcov:
ERROR: Failed to build gem native extension.c:/ruby/bin/ruby.exe extconf.rb
creating Makefilenmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/relevance-rcov-0.8.3.4 for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/relevance-rcov-0.8.3.4/ext/rcovrt/gem_make.out
rcov
(0.8.3.4)
is Working
for Aaron Bedra (Mac OSX, over 2 years ago)
Can whoever is in charge change the url at the top of the page to http://github.com/relevance/rcov and add Relevance, Chad Humpries, and Aaron Bedra as authors?
rcov
(0.8.3.3)
is Working
for Aaron Bedra (Mac OSX, over 2 years ago)
http://github.com/relevance/rcov
gem install relevance-rcov -s http://gems.github.com
rcov
(0.8.1.2.0)
is Failing
for Shawn Anderson (Mac OSX, over 2 years ago)
fails to build:
http://gist.github.com/89776
rcov
(0.8.1.5.6)
is Failing
for siefca (Mac OSX, over 2 years ago)
Aaron Bedra's branch:
$ rake gem
rake aborted!
Don't know how to build task 'ext/rcovrt/rcovrt.c'$ rake --trace
results: http://gist.github.com/83550
rcov
(0.8.1.5.6)
is Failing
for Clint Bishop (Mac OSX, over 2 years ago)
Fails to compile same as elliottcable's linked error report. This is with Aaron Bedra's aforementioned github ruby19 branch.
rcov
(0.8.1.5.6)
is Working
for Aaron Bedra (Mac OSX, over 2 years ago)
We have things running properly. Please use the ruby19 branch of the repo listed below. Still a bit of cleanup to do but you can get reports.
rcov
is Failing
for Aaron Bedra (Mac OSX, over 2 years ago)
http://github.com/spicycode/rcov
This version has made several improvements in the 1.8 camp and I am working with spicycode to get 1.9 compatibility going. Things compile properly but there are still a few bugs to work out
rcov
(0.8.1.2.0)
is Failing
for Ryan Neufeld (Mac OSX, over 2 years ago)
Fails to build in callsite.c
rcov
(0.8.1.2.0)
is Failing
for elliottcable (Mac OSX, over 2 years ago)
`gem install rcov` fails as follows:

rcov (0.9.11) is Failing
for Ben (Mac OSX, 3 months ago)