class CircleCI::CoverageReporter::Reporters::SimpleCov

Public Class Methods

default_dir() click to toggle source
# File lib/circleci/coverage_reporter/reporters/simplecov.rb, line 10
def self.default_dir
  'coverage'
end
default_html_file_name() click to toggle source
# File lib/circleci/coverage_reporter/reporters/simplecov.rb, line 14
def self.default_html_file_name
  'index.html'
end
default_json_file_name() click to toggle source
# File lib/circleci/coverage_reporter/reporters/simplecov.rb, line 18
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/coverage_reporter/reporters/simplecov.rb, line 26
def parse_json(json)
  JSON.parse(json)['result']['covered_percent'].to_f
end