Sha256: e897a9348eae6fb2814b1d4d15591e5a83c74530320ded5028236858e20fdee9

Contents?: true

Size: 530 Bytes

Versions: 5

Compression:

Stored size: 530 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

      if ENV['TRAVIS']
        require 'coveralls'
        formatter SimpleCov::Formatter::MultiFormatter[SimpleCov::Formatter::QualityFormatter,
                                                       Coveralls::SimpleCov::Formatter]
      else
        formatter SimpleCov::Formatter::QualityFormatter
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
modis-1.3.0 spec/support/simplecov_helper.rb
modis-1.2.0 spec/support/simplecov_helper.rb
modis-1.1.0 spec/support/simplecov_helper.rb
modis-1.0.0 spec/support/simplecov_helper.rb
modis-0.0.1 spec/support/simplecov_helper.rb