markbates / cover_me

An RCov-esque coverage tool for Ruby 1.9
http://www.metabates.com
MIT License
203 stars 18 forks source link

coverage measurement not enabled? #68

Open thepixelmonk opened 13 years ago

thepixelmonk commented 13 years ago

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)>'

belt commented 12 years ago

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.