Sha256: 90e9fca14eea414af021b6fccf97026ac062affe31d46e327dcc620dfc10ab28
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
require "simplecov" puts "[Simplecov] Loaded." 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.merge_timeout 240 #4 mins if suite_name = ENV["COVERAGE_GROUP"] SimpleCov.command_name(suite_name) end SimpleCov.formatter = SimpleCov::Formatter::QualityFormatter SimpleCov.start do add_filter "/vendor/" if ENV["CHECK_SPEC_COVERAGE"] == "true" # Check all specs for full coverage across browsers add_filter "/spec/dummy" #Ignore dummy rails app add_filter "/spec/support/selenium_display" #Multi browser helper else # Ignore all spec coverage add_filter "/spec/" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-prg-0.1.0 | spec/support/use_simplecov.rb |