Sha256: 094d840bf9001993d4e8612b8bbdba1b669097a5e001fa64c98a8132d4704722

Contents?: true

Size: 1002 Bytes

Versions: 16

Compression:

Stored size: 1002 Bytes

Contents

# frozen_string_literal: true

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

module Datadog
  module CI
    module Contrib
      module Minitest
        # Description of Minitest integration
        class Integration
          include Datadog::CI::Contrib::Integration

          MINIMUM_VERSION = Gem::Version.new("5.0.0")

          register_as :minitest

          def self.version
            Gem.loaded_specs["minitest"]&.version
          end

          def self.loaded?
            !defined?(::Minitest).nil?
          end

          def self.compatible?
            super && version >= MINIMUM_VERSION
          end

          # test environments should not auto instrument test libraries
          def auto_instrument?
            false
          end

          def new_configuration
            Configuration::Settings.new
          end

          def patcher
            Patcher
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
datadog-ci-1.8.1 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.8.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.7.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.6.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.5.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.4.1 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.4.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.3.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.2.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.1.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.0.1 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.0.0 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.0.0.beta6 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.0.0.beta3 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.0.0.beta2 lib/datadog/ci/contrib/minitest/integration.rb
datadog-ci-1.0.0.beta1 lib/datadog/ci/contrib/minitest/integration.rb