Skip to content

JUnit reports error in case of parametrized tests #407

@mivallion

Description

@mivallion

Luatest writes reports with double quotes around the values of test parameters when they are strings, which breaks the XML format.

Test group example:

local g_positive_start_stages = t.group('touching_positive.start.stages', {
    { stage = const.TOUCHING.STAGE.COMPLETED },
    { stage = const.TOUCHING.STAGE.CANCELLED },
})

Result JUnit xml:

<testcase group="touching_positive.start.stages.stage:"COMPLETED" name="touching_positive.start.stages.stage:"COMPLETED".test_start" time="0.040">
</testcase>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions