You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the `Issue.record` method definition with severity as a parameter.
78
78
79
79
```swift
80
-
/// Record an issue when a running test fails unexpectedly.
80
+
/// Record an issue when a running test and an issue occurs.
81
81
///
82
82
/// - Parameters:
83
83
/// - comment: A comment describing the expectation.
84
-
/// - severity: The severity of the issue.
84
+
/// - severity: The severity level of the issue. This factor impacts whether the issue constitutes a failure.
85
85
/// - sourceLocation: The source location to which the issue should be
86
86
/// attributed.
87
87
///
@@ -117,7 +117,7 @@ public var severity: Severity { get set }
117
117
118
118
```
119
119
120
-
-`isFailure`: A boolean property to determine if an issue results in a test failure, thereby helping in result aggregation and reporting.
120
+
-`isFailure`: A boolean computed property to determine if an issue results in a test failure, thereby helping in result aggregation and reporting.
121
121
122
122
```swift
123
123
extensionIssue {
@@ -154,7 +154,7 @@ This revision aims to clarify the functionality and usage of the `Severity` enum
154
154
155
155
### Integration with supporting tools
156
156
157
-
Issue severity will be in the event stream output when a `issueRecorded` event occurs. This will be a breaking change because some tools may assume that all `issueRecorded` events are failing. Due to this we will be bumping the event stream version and v1 will maintain it's behavior and not output any events for non failing issues. We will also be adding `isFailure` to the issue so that clients will know if the issue should be treated as a failure.
157
+
Issue severity will be in the event stream output when a `issueRecorded` event occurs. This will be a breaking change because some tools may assume that all `issueRecorded` events are failing. Due to this we will be bumping the event stream version and v1 will maintain it's behavior and not output any events for non failing issues. We will also be adding `isFailure` to the issue so that clients will know if the issue should be treated as a failure.`isFailure` is a computed property.
158
158
159
159
The JSON event stream ABI will be amended correspondingly:
0 commit comments