Skip to content

Commit b8ae00d

Browse files
authored
Merge pull request #750 from sta1r/AM/severity-levels
Outlining the difference between Allure severity levels
2 parents ef5be1d + c996fb4 commit b8ae00d

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

docs/test/annotations.md

+17-7
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,28 @@ Attribute|Type|Use
112112

113113
### severity
114114

115-
The `<return>` element is an implementation of a [`@Severity`] Allure tag; Metadata for report.
115+
The `<severity>` element is an implementation of the [`@Severity`] Allure annotation, which is used to prioritise tests by severity.
116116

117117
Attribute|Type|Use|Acceptable values
118118
---|---|---|---
119-
`value`|string|required|`MINOR`, `AVERAGE`, `MAJOR`, `BLOCKER`, `CRITICAL`
119+
`value`|string|required|`MINOR`, `AVERAGE`, `MAJOR`, `CRITICAL`, `BLOCKER`
120120

121121
#### Example
122122

123123
```xml
124124
<severity value="CRITICAL"/>
125125
```
126126

127+
#### Usage guidelines
128+
129+
Severity Level|Usage
130+
---|---
131+
`BLOCKER`|If this test fails, the customer is completely blocked from purchasing a product.
132+
`CRITICAL`|This is a serious problem impacting conversion, or affecting the operation of the store.
133+
`MAJOR`|Store conversion rate is reduced owing to this issue. For example, something is broken or missing that impacts checkout frequency or cart volume.
134+
`AVERAGE`|A fault on the storefront that can negatively impact conversion rate (like UI errors or omissions), or problems with Magento admin functionality.
135+
`MINOR`|An application or configuration fault that has no impact on conversion rate.
136+
127137
### skip
128138

129139
Use the `<skip>` element to skip a test.
@@ -213,14 +223,14 @@ Attribute|Type|Use
213223

214224
<!-- Link definitions -->
215225

216-
[`@Description`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#extended-test-class-or-test-method-description
217-
[`@Features`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#map-test-classes-and-test-methods-to-features-and-stories
226+
[`@Description`]: https://github.com/allure-framework/allure-phpunit#extended-test-class-or-test-method-description
227+
[`@Features`]: https://github.com/allure-framework/allure-phpunit#map-test-classes-and-test-methods-to-features-and-stories
218228
[`@group`]: http://codeception.com/docs/07-AdvancedUsage#Groups
219229
[`@return`]: http://codeception.com/docs/07-AdvancedUsage#Examples
220-
[`@Severity`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#set-test-severity
221-
[`@Stories`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#map-test-classes-and-test-methods-to-features-and-stories
230+
[`@Severity`]: https://github.com/allure-framework/allure-phpunit#set-test-severity
231+
[`@Stories`]: https://github.com/allure-framework/allure-phpunit#map-test-classes-and-test-methods-to-features-and-stories
222232
[`@TestCaseId`]: https://github.com/allure-framework/allure1/wiki/Test-Case-ID
223-
[`@Title`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#human-readable-test-class-or-test-method-title
233+
[`@Title`]: https://github.com/allure-framework/allure-phpunit#human-readable-test-class-or-test-method-title
224234
[description]: #description
225235
[features]: #features
226236
[group]: #group

0 commit comments

Comments
 (0)