Skip to content

JUnitXmlReportPlugin generates invalid testcase name #2949

@Pyppe

Description

@Pyppe

It seems that in certain cases an invalid test-case name is generated in the JUnit XML output.

steps

This is one arbitrary example demonstrating the issue:

  "This example" should {
    "given <VER.123 FOOBAR> yield <ver.123 foobar>" in {
      ok
    }
  }

problem

With this example (using specs2 3.8.6) the generated JUnit XML contains the following test-case:

<testcase classname="org.example.ExampleSpec" name="123 foobar&gt;" time="0.006">
</testcase>

expectation

Now, obviously the correct XML should be as follows:

<testcase classname="org.example.ExampleSpec" name="This example should::given &lt;VER.123 FOOBAR&gt; yield &lt;ver.123 foobar&gt;" time="0.006">
</testcase>

notes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions