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

Process correctly several test suites in a phpunit test report file

    XMLWordPrintable

    Details

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

      Description

      Since SQ 6.0 (see SONAR-7783) SQ fails when saving same metric twice.
      Unit test results report file might contain several test suites for the same file (nested). In this case currently we just saving top-most one, other/s are ignored (before SQ 6.0). Since SQ 6.0 analysis will simply fail.

      We need to figure out is it legal to nest test suites in PHPUnit format. If it is, we should aggregate data and save it only once.

      P.S. In order to avoid analysis failure I've added try/catch which for sure should be removed asap.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              carlo.bottiglieri Carlo Bottiglieri (Inactive)
              Reporter:
              elena.vilchik Elena Vilchik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: