Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.44 KB

severity.rst

File metadata and controls

65 lines (48 loc) · 1.44 KB

Specify severity of a test case

Use one of the following tags to specify severity of a test case:

  1. @trivial
  2. @minor
  3. @normal
  4. @critical
  5. @blocker

Those tags can be applied to scenarios:

Feature: Allure severity support
    @blocker
    Scenario: Blocking scenario
        Given noop

    @critical
    Scenario: Critical scenario
        Given noop

    @normal
    Scenario: Normal scenario
        Given noop

    @minor
    Scenario: Minor scenario
        Given noop

    @trivial
    Scenario: Trivial scenario
        Given noop

A severity tag can also be applied to a feature, affecting all scenarios of the feature:

@critical
Feature: Allure severity support
    Scenario: This scenario inherits the @cricial tag
        Given noop

    Scenario: This scenario also inherits the @cricial tag
        Given noop

If multiple severity tags are affecting a scenario, the last one wins:

@critical, @blocker
Feature: Allure severity support
    @minor @trivial
    Scenario: This is a trivial scenario
        Given noop

    Scenario: While this one is a blocker
        Given noop