Skip to content

Windows: duplicate ReportPortal items for pytest-bdd scenarios (path separator in scenario.py check) #418

Description

@drcrazy

Description

On Windows, pytest-bdd scenarios are reported twice in ReportPortal: once as a normal pytest test item (e.g. tests\search_test.py::test_search) and once as the BDD scenario/steps. On Linux, only the intended BDD hierarchy appears.

Root cause

PyTestService detects pytest-bdd scenario items with:

test_item.location[0].endswith("/pytest_bdd/scenario.py")

Metadata

Metadata

Assignees

No one assigned

    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