Sha256: 6e906b17c954eacde93ed0f3e1e523b1e94b85e02808b37b8d662f637d0776a7

Contents?: true

Size: 805 Bytes

Versions: 18

Compression:

Stored size: 805 Bytes

Contents

# https://github.com/colszowka/simplecov#using-simplecov-for-centralized-config
# see https://github.com/colszowka/simplecov/blob/master/lib/simplecov/defaults.rb
# vim: set ft=ruby
SimpleCov.profiles.define 'rmagick' do
  load_profile  'test_frameworks'

  add_group "Long files" do |src_file|
    src_file.lines.count > 100
  end
  class MaxLinesFilter < SimpleCov::Filter
    def matches?(source_file)
      source_file.lines.count < filter_argument
    end
  end
  add_group "Short files", MaxLinesFilter.new(5)

  # Exclude these paths from analysis
  add_filter 'bundle'
  add_filter 'bin'
end

## RUN SIMPLECOV
if ENV['COVERAGE'] =~ /\Atrue\z/i
  SimpleCov.start 'rmagick'
  puts '[COVERAGE] Running with SimpleCov HTML Formatter'
  SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter]
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
rmagick-4.1.0.rc2 .simplecov
rmagick-4.1.0.rc1 .simplecov
rmagick-4.0.0 .simplecov
rmagick-3.2.0 .simplecov
rmagick-3.1.0 .simplecov
rmagick-3.0.0 .simplecov
rmagick-windows-2.16.5 .simplecov
rmagick-windows-2.16.4 .simplecov
rmagick-windows-2.16.3 .simplecov
rmagick-windows-2.16.2 .simplecov
rmagick-windows-2.16.1 .simplecov
rmagick-2.16.0 .simplecov
rmagick-2.15.4 .simplecov
rmagick-2.15.3 .simplecov
rmagick-2.15.2 .simplecov
rmagick-2.15.1 .simplecov
rmagick-2.15.0 .simplecov
rmagick-2.14.0 .simplecov