Class: Datadog::CI::TestRetries::NullComponent

Inherits:
Component
  • Object
show all
Defined in:
lib/datadog/ci/test_retries/null_component.rb

Instance Attribute Summary collapse

Attributes inherited from Component

#retry_failed_tests_count

Instance Method Summary collapse

Methods inherited from Component

#build_strategy

Constructor Details

#initializeNullComponent

Returns a new instance of NullComponent.



11
12
13
14
15
16
# File 'lib/datadog/ci/test_retries/null_component.rb', line 11

def initialize
  # enabled only by remote settings
  @retry_failed_tests_enabled = false
  @retry_failed_tests_max_attempts = 0
  @retry_failed_tests_total_limit = 0
end

Instance Attribute Details

#retry_failed_tests_enabledObject (readonly)

Returns the value of attribute retry_failed_tests_enabled.



9
10
11
# File 'lib/datadog/ci/test_retries/null_component.rb', line 9

def retry_failed_tests_enabled
  @retry_failed_tests_enabled
end

#retry_failed_tests_max_attemptsObject (readonly)

Returns the value of attribute retry_failed_tests_max_attempts.



9
10
11
# File 'lib/datadog/ci/test_retries/null_component.rb', line 9

def retry_failed_tests_max_attempts
  @retry_failed_tests_max_attempts
end

#retry_failed_tests_total_limitObject (readonly)

Returns the value of attribute retry_failed_tests_total_limit.



9
10
11
# File 'lib/datadog/ci/test_retries/null_component.rb', line 9

def retry_failed_tests_total_limit
  @retry_failed_tests_total_limit
end

Instance Method Details

#configure(library_settings) ⇒ Object



18
19
# File 'lib/datadog/ci/test_retries/null_component.rb', line 18

def configure(library_settings)
end

#with_retries {|no_action| ... } ⇒ Object

Yields:

  • (no_action)


21
22
23
24
# File 'lib/datadog/ci/test_retries/null_component.rb', line 21

def with_retries(&block)
  no_action = proc {}
  yield no_action
end