reportportal / agent-python-pytest

Framework integration with PyTest
Apache License 2.0
94 stars 103 forks source link

Using Pytest-BDD the report includes double path #364

Closed AnnaDinaburgVulikh closed 3 months ago

AnnaDinaburgVulikh commented 3 months ago

When executing pytest-bdd tests I get a "double" rout to the test. We have test folders, so the folders are desplayed and the test name gets a full path too. example: automation::automation::tests::test_runtime_controls.py::test_check_attack_is_detected_by_runtime_agent[reverse shell, malware alert]

using the rp_hierarchy_code flag, the additional full path is just moves to the folder path.

I suggest the following solution:

not using the flag example: image

using the flag example: image

AnnaDinaburgVulikh commented 3 months ago

A resolution in here https://github.com/reportportal/agent-python-pytest/pull/365

AnnaDinaburgVulikh commented 3 months ago

Looks like it was already fixed in 5.4.1

HardNorth commented 3 months ago

@AnnaDinaburgVulikh We don't support pytest-BDD yet, it's in plans, but not soon: https://github.com/reportportal/agent-python-pytest/issues/357