Skip to content

Instantly share code, notes, and snippets.

@danmayer
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danmayer/95967b5900d4193c6285 to your computer and use it in GitHub Desktop.
Save danmayer/95967b5900d4193c6285 to your computer and use it in GitHub Desktop.
Example of Coverage bug causing a problem for Coverband
def method_a
puts "hi"
end
def method_b
puts "boom goes the awesome"
end
method_a
puts Coverage.result
puts "this doesn't matter and is between coverage"
Coverage.start
method_b
puts Coverage.result
require 'coverage'
Coverage.start
require './covercheck'
@danmayer
Copy link
Author

danmayer commented Jun 2, 2014

to execute just run ruby ./example.rb This demonstrate why Coverage from the ruby std-lib isn't useful for the kind of data I want to get from coverband.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment