Class: DatadogAPIClient::V2::FlakyTestAttributes

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/flaky_test_attributes.rb

Overview

Attributes of a flaky test.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#_moduleObject

The name of the test module. The definition of module changes slightly per language:

  • In .NET, a test module groups every test that is run under the same unit test project.
  • In Swift, a test module groups every test that is run for a given bundle.
  • In JavaScript, the test modules map one-to-one to test sessions.
  • In Java, a test module groups every test that is run by the same Maven Surefire/Failsafe or Gradle Test task execution.
  • In Python, a test module groups every test that is run under the same .py file as part of a test suite, which is typically managed by a framework like unittest or pytest.
  • In Ruby, a test module groups every test that is run within the same test file, which is typically managed by a framework like RSpec or Minitest.


67
68
69
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 67

def _module
  @_module
end

#additional_propertiesObject

Returns the value of attribute additional_properties.



89
90
91
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 89

def additional_properties
  @additional_properties
end

#attempt_to_fix_idObject

Unique identifier for the attempt to fix this flaky test. Use this ID in the Git commit message in order to trigger the attempt to fix workflow.

When the workflow is triggered the test is automatically retried by the tracer a certain number of configurable times. When all retries pass, the test is automatically marked as fixed in Flaky Test Management. Test runs are tagged with @test.test_management.attempt_to_fix_passed and @test.test_management.is_attempt_to_fix when the attempt to fix workflow is triggered.



28
29
30
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 28

def attempt_to_fix_id
  @attempt_to_fix_id
end

#codeownersObject

The name of the test's code owners as inferred from the repository configuration.



31
32
33
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 31

def codeowners
  @codeowners
end

#envsObject

List of environments where this test has been flaky.



34
35
36
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 34

def envs
  @envs
end

#first_flaked_branchObject

The branch name where the test exhibited flakiness for the first time.



37
38
39
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 37

def first_flaked_branch
  @first_flaked_branch
end

#first_flaked_shaObject

The commit SHA where the test exhibited flakiness for the first time.



40
41
42
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 40

def first_flaked_sha
  @first_flaked_sha
end

#first_flaked_tsObject

Unix timestamp when the test exhibited flakiness for the first time.



43
44
45
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 43

def first_flaked_ts
  @first_flaked_ts
end

#flaky_categoryObject

The category of a flaky test.



46
47
48
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 46

def flaky_category
  @flaky_category
end

#flaky_stateObject

The current state of the flaky test.



49
50
51
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 49

def flaky_state
  @flaky_state
end

#last_flaked_branchObject

The branch name where the test exhibited flakiness for the last time.



52
53
54
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 52

def last_flaked_branch
  @last_flaked_branch
end

#last_flaked_shaObject

The commit SHA where the test exhibited flakiness for the last time.



55
56
57
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 55

def last_flaked_sha
  @last_flaked_sha
end

#last_flaked_tsObject

Unix timestamp when the test exhibited flakiness for the last time.



58
59
60
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 58

def last_flaked_ts
  @last_flaked_ts
end

#nameObject

The test name. A concise name for a test case. Defined in the test itself.



70
71
72
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 70

def name
  @name
end

#pipeline_statsObject

CI pipeline related statistics for the flaky test. This information is only available if test runs are associated with CI pipeline events from CI Visibility.



73
74
75
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 73

def pipeline_stats
  @pipeline_stats
end

#servicesObject

List of test service names where this test has been flaky.

A test service is a group of tests associated with a project or repository. It contains all the individual tests for your code, optionally organized into test suites, which are like folders for your tests.



78
79
80
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 78

def services
  @services
end

#suiteObject

The name of the test suite. A group of tests exercising the same unit of code depending on your language and testing framework.



81
82
83
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 81

def suite
  @suite
end

#test_run_metadataObject

Metadata about the latest failed test run of the flaky test.



84
85
86
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 84

def 
  @test_run_metadata
end

#test_statsObject

Test statistics for the flaky test.



87
88
89
# File 'lib/datadog_api_client/v2/models/flaky_test_attributes.rb', line 87

def test_stats
  @test_stats
end