Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51890

junit output of jasmine-reporters fails to parse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • xunit-plugin
    • None

      WARNING: The converted file for the input file '/apps/.../workspace/build/e2e-results.xml' doesn't match the JUnit format
      ...
      ERROR: Premature end of file.
       

      Probably since this commit:

      With this commit, the output from jasmine-reporters is not valid anymore (at least attribute testsuite->disabled is rejected).

      We also opened a bug in jasmine-reporters so they can produce valid xml (https://github.com/larrymyers/jasmine-reporters).

      Just for reference: JUnit itself uses this schema.

      Snippet from the generated e2e-results.xml file:

      <?xml version="1.0" encoding="UTF-8" ?>
      <testsuites disabled="127" errors="0" failures="0" tests="129" time="9.783">
       <testsuite name="001 Login Logout" timestamp="2018-06-12T16:23:22" hostname="localhost" time="4.482" errors="0" tests="0" skipped="0" disabled="0" failures="0">
       </testsuite>
       <testsuite name="001 Login Logout.when the user is logged out" timestamp="2018-06-12T16:23:22" hostname="localhost" time="4.482" errors="0" tests="1" skipped="0" disabled="0" failures="0">
        <testcase classname="001 Login Logout.when the user is logged out" name="it should login an existing user and redirect to the dashboard page" time="2.937" />
       </testsuite>
       <testsuite name="001 Login Logout.when the user is logged out.and then signs in " timestamp="2018-06-12T16:23:26" hostname="localhost" time="0.517" errors="0" tests="1" skipped="0" disabled="0" failures="0">
        <testcase classname="001 Login Logout.when the user is logged out.and then signs in " name="it should logout the user" time="0.514" />
       </testsuite>
       <testsuite name="100 Globale suche" timestamp="2018-06-12T16:23:26" hostname="localhost" time="0.001" errors="0" tests="2" skipped="0" disabled="2" failures="0">
        <testcase classname="100 Globale suche" name="should find a search result and navigate to the entity" time="0">
         <skipped />
        </testcase>
        <testcase classname="100 Globale suche" name="should show existing Kita Fisch in &quot;Globale Suche&quot;" time="0.001">
         <skipped />
        </testcase>
       </testsuite>
      </testsuites>

            nfalco Nikolas Falco
            christophlinder Christoph Linder
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: