Sha256: 0d3a5a8f0d2fbb9520ecffa40c7cd3efb2816e27917c0e4e4530b8ac4423f8bd
Contents?: true
Size: 778 Bytes
Versions: 2
Compression:
Stored size: 778 Bytes
Contents
module Micron class Reporter # Reporter which generates coverage report using SimpleCov class Coverage < Reporter def end_tests(files, results) generate_coverage_report() end private def generate_coverage_report path = File.dirname(ENV["MICRON_PATH"]) # Locate easycov path used in tests %w{coverage .coverage}.each do |t| t = File.join(path, t) if File.directory?(t) && !Dir.glob(File.join(t, ".tmp.*.resultset.json")).empty? then EasyCov.path = t end end # Merge coverage EasyCov.merge! # Write coverage Micron.capture_io { SimpleCov::ResultMerger.merged_result.format! } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
micron-0.5.1 | lib/micron/reporter/coverage.rb |
micron-0.5.0 | lib/micron/reporter/coverage.rb |