Skip to content

Emit <testsuite> tag(s) #5

@lmsurpre

Description

@lmsurpre

Really liking this project for converting some shell scripts into tests that can emit JUnit XML.

One thing that I found is that the current XML format is not valid JUnit XML.

Specifically, it produces output like this:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites failures="0" ...
  <testcase ...
  <testcase ...
</testsuites>

That was failing in our tools due to the fact there is no <testsuite> under <testsuites>.

I fixed it on my side simply by changing <testsuites> to <testsuite> (and </testsuites> to </testsuite>). The element is required to have one or more testsuite, but apparently its also valid to have a single testsuite at the root level.

For additional reading, please see https://stackoverflow.com/a/4925847/161022

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