Skip to content

junitxml parses report.nodeid incorrectly #469

Closed
@pytestbot

Description

@pytestbot

Originally reported by: Andrei Baidarov (BitBucket: tIGO, GitHub: tIGO)


If test param contains '::' junitxml parses report.nodeid incorrectly. For example, for test

#!python

import pytest

@pytest.mark.parametrize('foo', ['1::2'])
def testA(foo):
    assert True

py.test --junitxml=1 test.py produces xml with classname="test.testA[1" and name="2]" instead of classname="test" and name="testA[1::2]".


Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributorstatus: help wanteddevelopers would like help from experts on this topictopic: reportingrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions