Skip to content

xml regex validator failing #156

Closed
Closed
@rienafairefr

Description

@rienafairefr

If the xml report has the keys in a different order than in the regex, e.g.
<?xml version="1.0" ?> <coverage branch-rate="0" branches-covered="0" branches-valid="0" complexity="0" line-rate="0.789" lines-covered="344" lines-valid="436" timestamp="1662319474790" version="6.4.4">

the regex in your action code is .*<coverage.*lines-valid="(?<total>[\\d\\.]+)".*lines-covered="(?<covered>[\\d\\.]+)".*line-rate="(?<ratio>[\\d\\.]+)"
which doesnt validate, the xml attributes are just in a different order than expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions