Closed yakovbabich closed 1 year ago
@yakovbabich, your issue missing significant data. First of all, by default (without any flags) the agent reports tests in different format, like here:
So, I suppose you are using rp_hierarchy_code
flag. But in this case everything works correct for me:
To remove any misunderstanding and save our both time, please provide an example project which reproduces the case, until then I count this issue as invalid.
Cannot reproduce
Describe the bug
The name of an item is incorrect when tests running from different nested folders.
For example: 2 tests running, each in its folder ('goo' and 'zoo') when both folders under a root folder 'temp':
The name of the first item 'goo' is correct but the second item's name has an additional 'zoo' in it and an additional hierarchy folder:
As can be seen in the picture above, the name is incorrect and should appear as: 'tests/temp/zoo/test_zoo.py', in which should be another item with the test's name.
Steps to Reproduce To reproduce, create similar folder structure as shown in the image above, when there is a nested hierarchy of folders.
Expected behavior A correct name should appear on all items.
Actual behavior An incorrect name appear on item.
Package versions pytest-reportportal==5.1.3