Closed AnnaDinaburgVulikh closed 3 months ago
A resolution in here https://github.com/reportportal/agent-python-pytest/pull/365
Looks like it was already fixed in 5.4.1
@AnnaDinaburgVulikh We don't support pytest-BDD yet, it's in plans, but not soon: https://github.com/reportportal/agent-python-pytest/issues/357
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:
rp_drop_hierarchy_code
LeafType.CODE
leafs from path.not using the flag example:![image](https://github.com/reportportal/agent-python-pytest/assets/66639090/32a3141e-e558-4936-8168-c271f0082407)
using the flag example:![image](https://github.com/reportportal/agent-python-pytest/assets/66639090/56399d7c-e8ba-4fa5-86bb-d61393e0a4e9)