Class: Datadog::CI::Contrib::Cucumber::Integration
- Inherits:
-
Integration
- Object
- Integration
- Datadog::CI::Contrib::Cucumber::Integration
show all
- Defined in:
- lib/datadog/ci/contrib/cucumber/integration.rb
Overview
Description of Cucumber integration
Constant Summary
collapse
- MINIMUM_VERSION =
Gem::Version.new("3.0.0")
Instance Method Summary
collapse
Methods inherited from Integration
#available?, #configuration, #configure, #dependants, #enabled, inherited, #late_instrument?, #patchable?, #patched?
Instance Method Details
#compatible? ⇒ Boolean
23
24
25
|
# File 'lib/datadog/ci/contrib/cucumber/integration.rb', line 23
def compatible?
super && version >= MINIMUM_VERSION
end
|
#loaded? ⇒ Boolean
19
20
21
|
# File 'lib/datadog/ci/contrib/cucumber/integration.rb', line 19
def loaded?
!defined?(::Cucumber).nil? && !defined?(::Cucumber::Runtime).nil? && !defined?(::Cucumber::Configuration).nil?
end
|
#new_configuration ⇒ Object
27
28
29
|
# File 'lib/datadog/ci/contrib/cucumber/integration.rb', line 27
def new_configuration
Configuration::Settings.new
end
|
#patcher ⇒ Object
31
32
33
|
# File 'lib/datadog/ci/contrib/cucumber/integration.rb', line 31
def patcher
Patcher
end
|
#version ⇒ Object
15
16
17
|
# File 'lib/datadog/ci/contrib/cucumber/integration.rb', line 15
def version
Gem.loaded_specs["cucumber"]&.version
end
|