Class: Datadog::CI::Contrib::Simplecov::Integration

Inherits:
Integration
  • Object
show all
Defined in:
lib/datadog/ci/contrib/simplecov/integration.rb

Overview

Description of Simplecov integration

Constant Summary collapse

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

Instance Method Summary collapse

Methods inherited from Integration

#available?, #configuration, #configure, #dependants, #enabled, inherited, #patchable?, #patched?

Instance Method Details

#compatible?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/datadog/ci/contrib/simplecov/integration.rb', line 23

def compatible?
  super && version >= MINIMUM_VERSION
end

#late_instrument?Boolean

additional instrumentations for test libraries are late instrumented on test session start

Returns:

  • (Boolean)


28
29
30
# File 'lib/datadog/ci/contrib/simplecov/integration.rb', line 28

def late_instrument?
  true
end

#loaded?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/datadog/ci/contrib/simplecov/integration.rb', line 19

def loaded?
  !defined?(::SimpleCov).nil?
end

#new_configurationObject



32
33
34
# File 'lib/datadog/ci/contrib/simplecov/integration.rb', line 32

def new_configuration
  Configuration::Settings.new
end

#patcherObject



36
37
38
# File 'lib/datadog/ci/contrib/simplecov/integration.rb', line 36

def patcher
  Patcher
end

#versionObject



15
16
17
# File 'lib/datadog/ci/contrib/simplecov/integration.rb', line 15

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