Sha256: b3aebde94f0f7f1f6dd5b7c901736c1ecb2099bd5651dacfbea9c450445dda27

Contents?: true

Size: 959 Bytes

Versions: 4

Compression:

Stored size: 959 Bytes

Contents

# frozen_string_literal: true

require_relative "../integration"
require_relative "configuration/settings"
require_relative "patcher"

module Datadog
  module CI
    module Contrib
      module Simplecov
        # Description of Simplecov integration
        class Integration < Contrib::Integration
          MINIMUM_VERSION = Gem::Version.new("0.18.0")

          def version
            Gem.loaded_specs["simplecov"]&.version
          end

          def loaded?
            !defined?(::SimpleCov).nil?
          end

          def compatible?
            super && version >= MINIMUM_VERSION
          end

          # additional instrumentations for test libraries are late instrumented on test session start
          def late_instrument?
            true
          end

          def new_configuration
            Configuration::Settings.new
          end

          def patcher
            Patcher
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datadog-ci-1.12.0 lib/datadog/ci/contrib/simplecov/integration.rb
datadog-ci-1.11.0 lib/datadog/ci/contrib/simplecov/integration.rb
datadog-ci-1.10.0 lib/datadog/ci/contrib/simplecov/integration.rb
datadog-ci-1.9.0 lib/datadog/ci/contrib/simplecov/integration.rb