Skip to content

incorrect allure_full_name parsing - testcase duplication in TestOps #622

@svdnwrk

Description

@svdnwrk

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'

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions