Sha256: bae26cff8446d23a84bc18934102e5aec04ca98fee5122890346a4267b2ba267

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 Bytes

Contents

require 'datadog/ci/contrib/cucumber/formatter'

module Datadog
  module CI
    module Contrib
      module Cucumber
        # Instrumentation for Cucumber
        module Instrumentation
          def self.included(base)
            base.prepend(InstanceMethods)
          end

          # Instance methods for configuration
          module InstanceMethods
            attr_reader :datadog_formatter

            def formatters
              @datadog_formatter ||= Datadog::CI::Contrib::Cucumber::Formatter.new(@configuration)
              [@datadog_formatter] + super
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/datadog/ci/contrib/cucumber/instrumentation.rb
ddtrace-0.51.0 lib/datadog/ci/contrib/cucumber/instrumentation.rb
ddtrace-0.50.0 lib/datadog/ci/contrib/cucumber/instrumentation.rb