Sha256: ae72b8e11a298cdc64d4698b545439a76a17f0e9eaac400ef63c5ffeb4e0a6c7

Contents?: true

Size: 731 Bytes

Versions: 12

Compression:

Stored size: 731 Bytes

Contents

module Parliament
  module Utils
    module TestHelpers
      module SimpleCovHelper
        require 'coveralls'
        require 'simplecov'

        def self.load_rspec_config(_config)
          SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
                                                                           Coveralls::SimpleCov::Formatter,
                                                                           SimpleCov::Formatter::HTMLFormatter
                                                                         ])

          profile = defined?(Rails) ? 'rails' : nil

          SimpleCov.start profile do
            add_filter 'spec'
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
parliament-utils-0.11.3 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.11.2 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.11.1 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.11.0 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.10.2 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.10.1 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.10.0 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.9.1 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.9.0 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.8.7 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.8.6 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.8.5 lib/parliament/utils/test_helpers/simplecov_helper.rb