Sha256: 5f8a3fbe3f8fb08dff998377ed4ae541cfb6bbf85009c2bd825ce9bfc0204f73

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

require 'simplecov'
require './spec/support/simplecov_quality_formatter'

module SimpleCovHelper
  def start_simple_cov(name)
    SimpleCov.start do
      add_filter '/spec/'
      command_name name

      formatters = [SimpleCov::Formatter::QualityFormatter]

      if ENV['TRAVIS']
        require 'codeclimate-test-reporter'

        if CodeClimate::TestReporter.run?
          formatters << CodeClimate::TestReporter::Formatter
        end
      end

      formatter SimpleCov::Formatter::MultiFormatter[*formatters]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
modis-1.4.2 spec/support/simplecov_helper.rb
modis-1.4.1-java spec/support/simplecov_helper.rb
modis-1.4.1 spec/support/simplecov_helper.rb
modis-1.4.0 spec/support/simplecov_helper.rb