allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

incorrect allure_full_name parsing - testcase duplication in TestOps

Open svdnwrk opened this issue 4 years ago • 0 comments

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'

svdnwrk avatar Sep 29 '21 10:09 svdnwrk