metric_fu (rcov) not seeing code or coverage

48 views
Skip to first unread message

Justin

unread,
Aug 15, 2011, 9:09:36 AM8/15/11
to metric_fu
Hi,

Metrics appear to work run fine and I get, what appear to be, good
metrics for everything except code coverage. Coverage shows 0% (even
though there are tests) but doesn't even list the files in the table
below the graph ans show a percentage. Seems like it's not seeing my
source OR my tests?

You can see the project on github here: http://bit.ly/n4viPf

Any help appreciated!

Justin

Justin

unread,
Aug 15, 2011, 5:13:10 PM8/15/11
to metric_fu
Resolved: Turns out that the path to my spec_helper was not coming
out right. I added the following to each of my specs to get it
working:

require File.expand_path(File.dirname(__FILE__)) + '/../spec_helper'

That builds a dynamic (but absolute) path to the spec_helper. It
might not be the best way to do this so I'm still interested in folks
opinions (if they have them).

Cheers...
Reply all
Reply to author
Forward
0 new messages