Sha256: af1f3e8f50ceda4301d7fa628218b6e5ee65b716c7b63607467066bd111b959c

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

require 'simplecov'
SimpleCov.command_name 'Unit Tests'
SimpleCov.start do
  add_filter "test/"
  add_filter "vendor/"
  add_group "Generator", "lib/generator"
  add_group "Engine", "lib/hquery"
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

2 entries across 2 versions & 1 rubygems

Version Path
hqmf2js-1.4.0 test/simplecov_init.rb
hqmf2js-1.3.0 test/simplecov.rb