allure-python
allure-python copied to clipboard
incorrect allure_full_name parsing - testcase duplication in TestOps
simple repro test:
@pytest.mark.parametrize("p2", ["qwe][", 'qwe'])
def test_dump3(p2):
return
run test, load result into TestOps - gives u 2 different test cases
cause of incorrect allure_full_name parser:
/allure-pytest/src/utils.py
def allure_full_name(item):
...
test = test_with_params.rsplit("[", 1)[0]
that gives u different fullName in allure results it should be just 'split'