Skip to content

Junit output is missing root element testsuites #1504

Description

@matthiask-c24

Since version 4.0 the JUNIT output does not create the xml node <testsuites> which creates an invalid XML file and makes it impossible to be parsed.

Change is done in here:
3.0.0...4.0.0#diff-3f3e49c01a4dd4837899f5a7b462ab0134b55a584da7dd4f05b808bee5fefd6a

in Version 3.0

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
  <testsuite id="1" package="" name="GeneratedSoap" hostname="localhost" tests="2" failures="0" skipped="0" errors="0" time="0">
    <testcase name="GeneratedSoap - Data\Generated\Soap\Update\AutoUpdate" classname="Data\Generated\Soap\AutoUpdate\AutoUpdateContainer" time="0"/>
    <testcase name="GeneratedSoap - Data\Generated\Soap\Data\DataContainer" classname="Data\Generated\Soap\Data\DataContainer" time="0"/>
  </testsuite>
  <testsuite id="2" package="" name="TestingApi" hostname="localhost" tests="1" failures="0" skipped="2" errors="0" time="0">
     <testcase name="TestingApi - App\TestingApi\TestApiConfigProvider" classname="App\TestingApi\TestApiConfigProvider" time="0">
      <skipped/>
      <skipped/>
    </testcase>
  </testsuite>
</testsuites>

In version 4.*

<?xml version="1.0" encoding="UTF-8"?>
<testsuite id="1" package="" name="GeneratedSoap" hostname="localhost" tests="2" failures="0" skipped="0" errors="0" time="0">
  <properties/>
  <testcase name="GeneratedSoap - Data\Generated\Soap\Update\AutoUpdate" classname="Data\Generated\Soap\AutoUpdate\AutoUpdateContainer" time="0"/>
  <testcase name="GeneratedSoap - Data\Generated\Soap\Data\DataContainer" classname="Data\Generated\Soap\Data\DataContainer" time="0"/>
</testsuite>
<testsuite id="2" package="" name="TestingApi" hostname="localhost" tests="1" failures="0" skipped="2" errors="0" time="0">
   <properties/>
   <testcase name="TestingApi - App\TestingApi\TestApiConfigProvider" classname="App\TestingApi\TestApiConfigProvider" time="0">
    <skipped/>
    <skipped/>
  </testcase>
</testsuite>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions