Class: Google::Apis::ToolresultsV1beta3::MergedResult
- Inherits:
-
Object
- Object
- Google::Apis::ToolresultsV1beta3::MergedResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/toolresults_v1beta3/classes.rb,
generated/google/apis/toolresults_v1beta3/representations.rb,
generated/google/apis/toolresults_v1beta3/representations.rb
Overview
Merged test result for environment. If the environment has only one step (no reruns or shards), then the merged result is the same as the step result. If the environment has multiple shards and/or reruns, then the results of shards and reruns that belong to the same environment are merged into one environment result.
Instance Attribute Summary collapse
-
#outcome ⇒ Google::Apis::ToolresultsV1beta3::Outcome
Interprets a result so that humans and machines can act on it.
-
#state ⇒ String
State of the resource Corresponds to the JSON property
state
. -
#test_suite_overviews ⇒ Array<Google::Apis::ToolresultsV1beta3::TestSuiteOverview>
The combined and rolled-up result of each test suite that was run as part of this environment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MergedResult
constructor
A new instance of MergedResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MergedResult
Returns a new instance of MergedResult.
1628 1629 1630 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1628 def initialize(**args) update!(**args) end |
Instance Attribute Details
#outcome ⇒ Google::Apis::ToolresultsV1beta3::Outcome
Interprets a result so that humans and machines can act on it.
Corresponds to the JSON property outcome
1607 1608 1609 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1607 def outcome @outcome end |
#state ⇒ String
State of the resource
Corresponds to the JSON property state
1612 1613 1614 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1612 def state @state end |
#test_suite_overviews ⇒ Array<Google::Apis::ToolresultsV1beta3::TestSuiteOverview>
The combined and rolled-up result of each test suite that was run as part of
this environment.
Combining: When the test cases from a suite are run in different steps (
sharding), the results are added back together in one overview. (e.g., if
shard1 has 2 failures and shard2 has 1 failure than the overview failure_count
= 3).
Rollup: When test cases from the same suite are run multiple times (flaky),
the results are combined (e.g., if testcase1.run1 fails, testcase1.run2 passes,
and both testcase2.run1 and testcase2.run2 fail then the overview flaky_count
= 1 and failure_count = 1).
Corresponds to the JSON property testSuiteOverviews
1626 1627 1628 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1626 def test_suite_overviews @test_suite_overviews end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1633 1634 1635 1636 1637 |
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1633 def update!(**args) @outcome = args[:outcome] if args.key?(:outcome) @state = args[:state] if args.key?(:state) @test_suite_overviews = args[:test_suite_overviews] if args.key?(:test_suite_overviews) end |