Skip to content

Version 1.8 files are not handled by xUnit > 2.0 with JUnit #63

Open
@albertosottile

Description

@albertosottile

XML files created by the latest version of this package are not handled by xUnit versions newer than 2.0. In the xUnit change log it is specified that, for JUnit, the two schemas supported are Ant junit and Maven Surefire and the current output of this package does not conform to neither.

In principle, the output of junit-xml used to conform to the Maven schema, and this is the case for XML files created by 1.7 and earlier. But, in PR #42, a "disabled" attribute was added to test suite, apparently following the jUnit 10 XSD. However, it appears that there is no "disabled" attribute in that very same XSD file now. Perhaps the attribute was there at the time of the PR, nevertheless now this attribute breaks validation from xUnit.

Reverting to 1.7 can be used as a workaround for this issue at the moment but, long term, it would be great if this "disabled" attribute could be stripped from the generated XML files, thus restoring compatibility with xUnit.

Thanks for your assistance.

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