Skip to content

junit.xml generate by JUnitReporter does not compatible with the jenkins "xUnit" plugin #486

@cynepco3hahue

Description

@cynepco3hahue

junit.xml that generated by JUnitReported

<?xml version="1.0" encoding="UTF-8"?>
  <testsuite tests="6" failures="0" time="502.436823874">
      <testcase name="CloudInit UserData A new VirtualMachineInstance with cloudInitNoCloud userDataBase64 source should have cloud-init data" classname="Tests Suite" time="0">
          <skipped></skipped>
      </testcase>
      <testcase name="CloudInit UserData A new VirtualMachineInstance with cloudInitNoCloud userDataBase64 source with injected ssh-key should have ssh-key under authorized keys" classname="Tests Suite" time="0">
          <skipped></skipped>
      </testcase>
      <testcase name="CloudInit UserData A new VirtualMachineInstance with cloudInitNoCloud userData source should process provided cloud-init data" classname="Tests Suite" time="0">
          <skipped></skipped>
      </testcase>
      <testcase name="Windows VirtualMachineInstance should succeed to start a vmi" classname="Tests Suite" time="19.49894934"></testcase>
      <testcase name="Windows VirtualMachineInstance should succeed to stop a running vmi" classname="Tests Suite" time="17.266661977"></testcase>
      <testcase name="Windows VirtualMachineInstance with winrm connection should have correct UUID" classname="Tests Suite" time="220.181473962"></testcase>
      <testcase name="Windows VirtualMachineInstance with winrm connection should have pod IP" classname="Tests Suite" time="185.52644888"></testcase>
      <testcase name="Windows VirtualMachineInstance with kubectl command should succeed to start a vmi" classname="Tests Suite" time="20.747579842"></testcase>
      <testcase name="Windows VirtualMachineInstance with kubectl command should succeed to stop a vmi" classname="Tests Suite" time="27.790455973"></testcase>
  </testsuite>

errors that I receive when xUnit plugin tries to parse it

WARNING: The file '.../junit.xml' is an invalid file.
WARNING: At line 2 of file:.../junit.xml:cvc-pattern-valid: Value '502.436823874' is not facet-valid with respect to pattern '(([0-9]{0,3},)*[0-9]{3}|[0-9]{0,3})*(\.[0-9]{0,3})?' for type '#AnonType_timetestsuite'.
WARNING: At line 2 of file:.../junit.xml:cvc-attribute.3: The value '502.436823874' of attribute 'time' on element 'testsuite' is not valid with respect to its type, 'null'.
WARNING: At line 2 of file:.../junit.xml:cvc-complex-type.4: Attribute 'name' must appear on element 'testsuite'.
WARNING: At line 2 of file:.../junit.xml:cvc-complex-type.4: Attribute 'errors' must appear on element 'testsuite'.
ERROR: The result file '.../junit.xml' for the metric 'JUnit' is not valid. The result file has been skipped.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions