SonarQube PHP
  1. SonarQube PHP
  2. SONARPHP-41

Cannot analyse project with multiple test files

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 0.4
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      windows xp
    • Number of attachments :
      0

      Description

      I have a project with a test directory which have several test files, when I run mvn sonar:sonar with following options (in my pom.xml file):
      sonar.language=php
      sonar.dynamicAnalysis=true
      (sonar.phpPmd.shouldRun=false
      sonar.phpDepend.shouldRun=false
      sonar.phpcpd.shouldRun=false)
      sonar.phpUnit.coverage.shouldRun=true
      sonar.phpUnit.shouldRun=true

      I have the following error :

      Embedded error: Can not add twice the same measure:
      org.sonar.api.measures.Measure@10bed9c[
      id=<null>,
      metricKey=test_execution_time,
      metric=org.sonar.api.measures.Metric@1bb3e9a[
      key=test_execution_time,
      name=Unit tests duration,
      type=MILLISEC,enabled=true,
      qualitative=false,
      direction=-1,
      domain=Tests,
      worstValue=<null>,
      bestValue=<null>,
      optimizedBestValue=<null>,
      hidden=false],
      value=891.0,data=<null>,
      description=<null>,
      alertStatus=<null>,
      alertText=<null>,
      tendency=<null>,
      date=<null>,
      variation1=<null>,
      variation2=<null>,
      variation3=<null>,
      variation4=<null>,
      variation5=<null>,
      url=<null>,
      characteristic=<null>
      persistenceMode=FULL]

      The generated phpunit.xml file is formatted as following (phpunit command format)

      <testsuites>
      <testsuite ...>
      <testsuite ...>
      </testsuite>
      <testsuite ...>
      </testsuite>
      </testsuite>
      </testsuites>

        Issue Links

          Activity

          Hide
          Fabrice Bellingard added a comment -

          Gennadiy Litvinyuk, do you know what the status of this ticket is? You talked about a patch that you sent to Akram and Sebastian: is it already applied?

          Show
          Fabrice Bellingard added a comment - Gennadiy Litvinyuk , do you know what the status of this ticket is? You talked about a patch that you sent to Akram and Sebastian: is it already applied?
          Hide
          Gennadiy Litvinyuk added a comment -

          Sorry, I don't know and I can't check this now.

          Cyril AKNINE, can you give us a feedback, whether this issue is still present with version 0.6?

          Show
          Gennadiy Litvinyuk added a comment - Sorry, I don't know and I can't check this now. Cyril AKNINE , can you give us a feedback, whether this issue is still present with version 0.6?
          Hide
          Fabrice Bellingard added a comment -

          As Cyril hasn't shown up for quite a while, I remove the 'fixFor" version of this ticket.

          Show
          Fabrice Bellingard added a comment - As Cyril hasn't shown up for quite a while, I remove the 'fixFor" version of this ticket.
          Hide
          Fabrice Bellingard added a comment -

          This issue is duplicated by SONAR-1588 that has just been fixed.

          Show
          Fabrice Bellingard added a comment - This issue is duplicated by SONAR-1588 that has just been fixed.
          Hide
          Fabrice Bellingard added a comment -

          Sorry, this issue is duplicated by SONARPLUGINS-1588.

          Show
          Fabrice Bellingard added a comment - Sorry, this issue is duplicated by SONARPLUGINS-1588 .

            People

            • Assignee:
              Fabrice Bellingard
              Reporter:
              Anonymous
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: