Skip to content

junitxml doesn't escape newlines in attribute values #1218

@aivarannamaa

Description

@aivarannamaa

If error message has newlines in it then <failure>-s attribute message contains them verbatim, but they should be encoded, otherwise XML parser will lose them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: junitxmlrelated to the junitxml builtin plugintopic: reportingrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions