Sha256: baf5190f9b2c1080c582e8a2ea8174db04cf70dceec3339feb89c88bc32498fc

Contents?: true

Size: 657 Bytes

Versions: 8

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

require "datadog/tracing/contrib/patcher"

require_relative "instrumentation"
require_relative "step"

module Datadog
  module CI
    module Contrib
      module Cucumber
        # Patcher enables patching of 'cucumber' module.
        module Patcher
          include Datadog::Tracing::Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            ::Cucumber::Runtime.include(Instrumentation)
            ::Cucumber::Core::Test::Step.include(Datadog::CI::Contrib::Cucumber::Step)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datadog-ci-1.3.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-1.2.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-1.1.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-1.0.1 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-1.0.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-1.0.0.beta6 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-1.0.0.beta3 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-1.0.0.beta2 lib/datadog/ci/contrib/cucumber/patcher.rb