Support Requests: Browse | Submit New | Admin

[#15593] RCov doing coverage of stuff in /usr/lib/ruby

Date:
2007-11-12 20:53
Priority:
3
Submitted By:
Nick Roosevelt (nroose)
Assigned To:
Mauricio Julio Fernandez Pradier (batsman)
Category:
None
State:
Open
Summary:
RCov doing coverage of stuff in /usr/lib/ruby

Detailed description
I have just run rcov on the project I am working on.  It is reporting results not only for our code, but for the files
in /usr/lib/ruby as well.  My impression is that this is not correct.  Can someone help me fix this?

Thanks,

- Nick

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-11-17 16:57
Sender: Mauricio Julio Fernandez Pradier

If you run rcov with no options, it will tell you which files
will be ignored in the coverage reports.

In my case, I get (Ruby is installed under /home/batsman/usr):

Files matching any of the following regexps will be omitted in
the report(s):
[/\A\/home\/batsman\/usr\/lib/,
 /\btc_[^.]*.rb/,
 /_test\.rb\z/,
 /\btest\//,
 /\bvendor\//, /\A\/home\/batsman\/usr\/\/lib\/ruby\/site_ruby\/1
\.8\/rcov\/report\.rb\z/]

/usr/lib should be included there if that's where ruby resides,
but you can use -x /usr/lib to request that it be ignored.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tonone2007-11-17 16:57batsman