xUnit - failed to parse XML because of 'flakes' field in testsuite tag

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • Component/s: xunit-plugin
    • None

      Hi,

      in new version of Maven Surefire/Failsafe (3.5.5) there was a change around handling of test failures and flakes. It seems that now in the XML report there is additional field flakes:

      <testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-failsafe-plugin/xsd/failsafe-test-report.xsd" version="3.0.2" name="com.github.streamshub.systemtests.users.UsersST" time="352.57" tests="3" errors="0" skipped="0" failures="0" flakes="0"> 

      When passing the XML report to xUnit, the file is skipped due to this field being extra and not allowed:

      cvc-complex-type.3.2.2: Attribute 'flakes' is not allowed to appear in element 'testsuite'. 

      The plugin will not fail, but all the reports are skipped.

            Assignee:
            Nikolas Falco
            Reporter:
            Lukas Kral
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: