Skip to content

[allure playwright] Steps of skipped tests shouldn't be marked as failed #1369

@MatMaj03

Description

@MatMaj03

Describe the bug
Allure reporter results marks steps of skipped tests cases as failures instead of skipped.

To Reproduce
Steps to reproduce the behavior:

  1. test.skip() a suite.
  2. Run the tests, having allure as reporter
  3. Check allure-results folder for test results
  4. See that steps of skipped have status "failed" (see screenshot for details)

Expected behavior
In allure results, steps of skipped tests shouldn't be marked as failed. Instead the status should be "skipped", as the parent is.

Screenshots

Image

Desktop (please complete the following information):

  • OS: win11
  • Browser: chrome
  • Version: 140
  • Deps
    "@playwright/test": "1.56.1",
    "allure-playwright": 3.4.1
    "playwright": "1.56.1"

Additional context
Seems it's important where the test.skip() is placed -> if it's placed not in before hook it seems to be ok, steps are not loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions