Sha256: 591ca04f32c3e1986c7fbe3fd5e78f265efd687611814037cca200326bd29539
Contents?: true
Size: 488 Bytes
Versions: 13
Compression:
Stored size: 488 Bytes
Contents
require 'simplecov' SimpleCov.command_name 'Unit Tests' SimpleCov.start do add_filter "test/" add_group "measures", "lib/measures" add_group "models", "lib/models" end class SimpleCov::Formatter::QualityFormatter def format(result) SimpleCov::Formatter::HTMLFormatter.new.format(result) File.open("coverage/covered_percent", "w") do |f| f.puts result.source_files.covered_percent.to_f end end end SimpleCov.formatter = SimpleCov::Formatter::QualityFormatter
Version data entries
13 entries across 13 versions & 1 rubygems