Last active
August 29, 2015 14:02
-
-
Save danmayer/95967b5900d4193c6285 to your computer and use it in GitHub Desktop.
Example of Coverage bug causing a problem for Coverband
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'coverage' | |
Coverage.start | |
require './covercheck' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.