Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JUnit reports error in case of parametrized tests #407

Open
mivallion opened this issue Dec 21, 2024 · 0 comments
Open

JUnit reports error in case of parametrized tests #407

mivallion opened this issue Dec 21, 2024 · 0 comments

Comments

@mivallion
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant