Sha256: 69d2c9f3578d01573f080890f88e7af2fd40dd70b2f369b71f5d0c41519627e9

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

SimpleCov.command_name 'Unit Tests'
SimpleCov.start do
  add_filter "test/"
  add_group "Library", "lib"
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
plan_executor-1.8.0 .simplecov
plan_executor-1.0.2 .simplecov