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.