Last active
December 24, 2015 01:29
-
-
Save motemen/6723976 to your computer and use it in GitHub Desktop.
SimpleCov and multiple loads
This file contains 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
if $flag | |
p :true | |
else | |
p :false | |
end |
This file contains 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 'simplecov' | |
SimpleCov.start | |
2.times do | |
$flag = !$flag | |
load './01_ex.rb' | |
end |
This file contains 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
:true | |
:false | |
SimpleCov failed to recognize the test framework and/or suite used. Please specify manually using SimpleCov.command_name 'Unit Tests'. | |
Coverage report generated for Unknown Test Framework to /Users/motemen/tmp/ruby-Coverage-multiple-loads/coverage. 2 / 3 LOC (66.67%) covered. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment