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.4.0 spec/use_simplecov.rb
kayessess-0.3.0 spec/use_simplecov.rb
kayessess-0.2.11 spec/use_simplecov.rb
middleman-react-0.0.2 spec/use_simplecov.rb
kayessess-0.2.10 spec/use_simplecov.rb
kayessess-0.2.9 spec/use_simplecov.rb
middleman-imageoptim-0.1.4 spec/use_simplecov.rb
kayessess-0.2.8 spec/use_simplecov.rb
kayessess-0.2.7 spec/use_simplecov.rb
kayessess-0.2.5 spec/use_simplecov.rb
kayessess-0.2.4 spec/use_simplecov.rb
kayessess-0.2.3 spec/use_simplecov.rb
kayessess-0.2.2 spec/use_simplecov.rb
kayessess-0.2.1 spec/use_simplecov.rb
kayessess-0.2.0 spec/use_simplecov.rb
kayessess-0.1.6 spec/use_simplecov.rb
kayessess-0.1.5 spec/use_simplecov.rb
kayessess-0.1.4 spec/use_simplecov.rb
kayessess-0.1.3 spec/use_simplecov.rb
kayessess-0.1.2 spec/use_simplecov.rb