Sha256: 23305d381b73af644b0f606ed57db1c44107fa74d04ccb6300b4299981c6086b
Contents?: true
Size: 548 Bytes
Versions: 5
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true 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['CI'] require 'codeclimate-test-reporter' formatters << CodeClimate::TestReporter::Formatter if CodeClimate::TestReporter.run? end formatter SimpleCov::Formatter::MultiFormatter.new(*formatters) end end end
Version data entries
5 entries across 5 versions & 1 rubygems