markbates / cover_me

An RCov-esque coverage tool for Ruby 1.9

Home Page:http://www.metabates.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coverage measurement not enabled?

thepixelmonk opened this issue · comments

Getting the following at the end of my test output:

/usr/lib/ruby/gems/1.9.1/gems/cover_me-1.2.0/lib/cover_me.rb:44:in result': coverage measurement is not enabled (RuntimeError) from /usr/lib/ruby/gems/1.9.1/gems/cover_me-1.2.0/lib/cover_me.rb:44:inblock in <top (required)>'

commented

The Coverage class is a part of the core as of ruby-1.9.x and is still experimental as of 1.9.2
The cover_me gem encapsulates the Coverage class.
"coverage measurement is not enabled" comes from the Coverage class to state Coverage.start didn't happen.

Hope this knowledge helps in one way or another.