Sha256: 3b745bdf8f187b810968146f558aa815c0e9d0db7fa9342eb77c6ff156830665

Contents?: true

Size: 492 Bytes

Versions: 6

Compression:

Stored size: 492 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
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
parliament-utils-0.8.4 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.8.3 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.8.2 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.8.1 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.8.0 lib/parliament/utils/test_helpers/simplecov_helper.rb
parliament-utils-0.7.3 lib/parliament/utils/test_helpers/simplecov_helper.rb