class CircleCIReporter::Reporters::SimpleCov
Public Class Methods
default_dir()
click to toggle source
# File lib/circleci_reporter/reporters/simplecov.rb, line 11 def self.default_dir 'coverage' end
default_html_file_name()
click to toggle source
# File lib/circleci_reporter/reporters/simplecov.rb, line 15 def self.default_html_file_name 'index.html' end
default_json_file_name()
click to toggle source
# File lib/circleci_reporter/reporters/simplecov.rb, line 19 def self.default_json_file_name '.last_run.json' end
Private Instance Methods
parse_json(json)
click to toggle source
@param json [String] @return [Float]
# File lib/circleci_reporter/reporters/simplecov.rb, line 27 def parse_json(json) JSON.parse(json)['result']['line'].to_f end