Sha256: 0aa27c47057672ac2344dc9b8be3f453a4a315cf3a3b6e6fdf0cb11ef66f14db

Contents?: true

Size: 872 Bytes

Versions: 3

Compression:

Stored size: 872 Bytes

Contents

# frozen_string_literal: true

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

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

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

          def loaded?
            !defined?(::Cucumber).nil? && !defined?(::Cucumber::Runtime).nil? && !defined?(::Cucumber::Configuration).nil?
          end

          def compatible?
            super && version >= MINIMUM_VERSION
          end

          def new_configuration
            Configuration::Settings.new
          end

          def patcher
            Patcher
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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