Sha256: 40ea7a1d13432f124439833efb933b7f50195c1ea6f8b7a13ed2d58179181c3a
Contents?: true
Size: 901 Bytes
Versions: 4
Compression:
Stored size: 901 Bytes
Contents
# -*- encoding: utf-8 -*- $LOAD_PATH.unshift File.dirname(__FILE__) $COCO_PATH = File.expand_path(File.expand_path(File.dirname(__FILE__)) + '/..') require 'coco/formatter' require 'coco/cover' require 'coco/writer' require 'coco/helpers' require 'coco/configuration' require 'coco/lister' require 'coverage' module Coco end Coverage.start at_exit do config = Coco::Configuration.new result = Coco::CoverageResult.new(config, Coverage.result) covered = result.covered_from_domain sources = Coco::SourceLister.new(config).list uncovered = Coco::UncoveredLister.new(sources, result.all_from_domain).list puts Coco::ConsoleFormatter.new(covered, uncovered).format html_files = Coco::HtmlFormatter.new(covered).format Coco::HtmlFilesWriter.new(html_files).write index = Coco::HtmlIndexFormatter.new(covered, uncovered).format Coco::HtmlIndexWriter.new(index).write end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
coco-0.5.1 | lib/coco.rb |
coco-0.5 | lib/coco.rb |
coco-0.4.2 | lib/coco.rb |
coco-0.4.1 | lib/coco.rb |