Skip to content

Enable Hierarchical Reporting with rp_hierarchy_code=True in Parallel Test Execution using pytest-xdist #399

@orestk-adorama

Description

@orestk-adorama

Current issue
The current implementation of the pytest-reportportal plugin doesn't support hierarchical reporting (rp_hierarchy_code=True) when running tests in parallel using pytest-xdist.

As a result, tests executed in parallel end up with a flat structure in ReportPortal, losing the parent-child relationships between modules, classes, and tests.

This feature request is highly desirable when executing test suites in parallel to preserve the contextual hierarchy of suites, classes, and test cases.

Proposed Solution:
Real-time, Centralized Reporting:
Workers send test events (e.g., test start, outcome) to the master process.

The master constructs the correct hierarchy dynamically.

The master then sends the structured data to ReportPortal in real time, preserving the rp_hierarchy_code hierarchy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions