Uploaded image for project: 'SonarPHP'
  1. SonarPHP
  2. SONARPHP-585

NPE on test report containing a testsuite without file name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Unit Tests
    • Labels:
      None

      Description

      A NullPointerException is raised when importing a test report with the following content:

      <?xml version="1.0" encoding="UTF-8"?>
      <testsuites>
        <testsuite name="" >
          <testsuite name="suite1" tests="101" assertions="0" failures="0" errors="0" time="3.14">
            <testcase name="case1" time="0.11"/>
          </testsuite>
        </testsuite>
      </testsuites>
      

        Attachments

          Activity

            People

            Assignee:
            elena.vilchik Elena Vilchik
            Reporter:
            pierre-yves.nicolas Pierre-Yves Nicolas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: