Sha256: daef3b6b36173d846d06a8ff09a4cd02da4eb777ad1dd288171d7cc1012317b5

Contents?: true

Size: 386 Bytes

Versions: 26

Compression:

Stored size: 386 Bytes

Contents

puts "[Simplecov] enabled"
require 'simplecov'

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

SimpleCov.start 'rails'

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
kayessess-0.1.1 spec/use_simplecov.rb
kayessess-0.1.0 spec/use_simplecov.rb
middleman-imageoptim-0.1.3 spec/use_simplecov.rb
middleman-imageoptim-0.1.2 spec/use_simplecov.rb
middleman-imageoptim-0.1.1 spec/use_simplecov.rb
middleman-imageoptim-0.1.0 spec/use_simplecov.rb