Class: Datadog::CI::TestRetries::NullComponent
- Defined in:
- lib/datadog/ci/test_retries/null_component.rb
Instance Attribute Summary collapse
-
#retry_failed_tests_enabled ⇒ Object
readonly
Returns the value of attribute retry_failed_tests_enabled.
-
#retry_failed_tests_max_attempts ⇒ Object
readonly
Returns the value of attribute retry_failed_tests_max_attempts.
-
#retry_failed_tests_total_limit ⇒ Object
readonly
Returns the value of attribute retry_failed_tests_total_limit.
Attributes inherited from Component
Instance Method Summary collapse
- #configure(library_settings) ⇒ Object
-
#initialize ⇒ NullComponent
constructor
A new instance of NullComponent.
- #with_retries {|no_action| ... } ⇒ Object
Methods inherited from Component
Constructor Details
#initialize ⇒ NullComponent
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_enabled ⇒ Object (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_attempts ⇒ Object (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_limit ⇒ Object (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
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 |