Skip to content

Numbers in XML report are formatted based on Locale #126

Closed
@jketterl

Description

@jketterl

We are currently setting up scoverage on a handful of our play framework / activator based apps, and we noticed that the coverage display in the jenkins plugin did not work as expected (it kept showing 0% coverage, even though values in the html report were higher).

upon further inspection, we found that the jenkins plugin expects the values "statement-rate" and "branch-rate" in the coverage report XML to be parseable by Double.parseDouble(), e.g. "12.34", while the reports generated by our build contained numbers that are formatted according to our system locale setting ("de_DE.UTF-8"), e.g. "12,34" (notice the comma).

This might be debatable, but in my opinion an XML file should be portable between systems of different locales, and as such the locale should not have an influence on its contents. Checking the code this does not appear to be intentional to me either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions