Description
On Windows, pytest-bdd scenarios are reported twice in ReportPortal: once as a normal pytest test item (e.g. tests\search_test.py::test_search) and once as the BDD scenario/steps. On Linux, only the intended BDD hierarchy appears.
Root cause
PyTestService detects pytest-bdd scenario items with:
test_item.location[0].endswith("/pytest_bdd/scenario.py")
Description
On Windows, pytest-bdd scenarios are reported twice in ReportPortal: once as a normal pytest test item (e.g.
tests\search_test.py::test_search) and once as the BDD scenario/steps. On Linux, only the intended BDD hierarchy appears.Root cause
PyTestServicedetects pytest-bdd scenario items with: