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

Version Path
bonnie_bundler-3.0.0 test/simplecov_init.rb
bonnie_bundler-2.2.5 test/simplecov_init.rb
bonnie_bundler-2.2.4 test/simplecov_init.rb
bonnie_bundler-2.2.3 test/simplecov_init.rb
bonnie_bundler-2.2.1 test/simplecov_init.rb
bonnie_bundler-2.2.0 test/simplecov_init.rb
bonnie_bundler-2.1.2 test/simplecov_init.rb
bonnie_bundler-2.1.1 test/simplecov_init.rb
bonnie_bundler-2.1.0 test/simplecov_init.rb
bonnie_bundler-2.0.3 test/simplecov_init.rb
bonnie_bundler-2.0.2 test/simplecov_init.rb
bonnie_bundler-2.0.1 test/simplecov_init.rb
bonnie_bundler-2.0.0 test/simplecov_init.rb