Rakefile in gm-notepad-0.0.16 vs Rakefile in gm-notepad-0.0.17
- old
+ new
@@ -15,10 +15,10 @@
require 'json'
$stdout.puts "Checking code_coverage"
lastrun_filename = File.expand_path('../coverage/.last_run.json', __FILE__)
if File.exist?(lastrun_filename)
coverage_percentage = JSON.parse(File.read(lastrun_filename)).fetch('result').fetch('covered_percent').to_i
- EXPECTED_COVERAGE_GOAL = 97
+ EXPECTED_COVERAGE_GOAL = 98
if coverage_percentage < EXPECTED_COVERAGE_GOAL
abort("ERROR: Code Coverage Goal Not Met:\n\t#{coverage_percentage}%\tExpected\n\t#{EXPECTED_COVERAGE_GOAL}%\tActual")
else
$stdout.puts "Code Coverage Goal Met (at least #{EXPECTED_COVERAGE_GOAL}% coverage)"
end