SonarQube PHP
  1. SonarQube PHP
  2. SONARPHP-226

PHP projects report no coverage when grouped with the Views plugin.

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      PHP 5.2.6, Debian Lenny
    • Number of attachments :
      2

      Description

      We run our PHP unit tests with cruise control and then use Maven to upload the results to Sonar. When you view an individual module's metrics you can see the coverage as a percentage, but you don't get line or branch coverage as you do with Java.

      When you add any module to a view, there is no coverage, the column is just empty (See screenshot)

      1. sonar-php.diff
        3 kB
        Stuart Grimshaw

        Activity

        Hide
        Stuart Grimshaw added a comment -

        Diff file to enable uncovered lines to be recorded for PHP projects.

        Show
        Stuart Grimshaw added a comment - Diff file to enable uncovered lines to be recorded for PHP projects.
        Hide
        Akram Ben Aissi added a comment -

        Hello Stuart,

        you patch has been applied on the trunk.
        We do not have a sonar instance with views plugin.
        Could you please test it now?
        Take care also that the plugin is now single jar packaged.
        So we will have to delete previous version from your extensions/plugin directory. And to copy the jar from the "php" module only now.

        Show
        Akram Ben Aissi added a comment - Hello Stuart, you patch has been applied on the trunk. We do not have a sonar instance with views plugin. Could you please test it now? Take care also that the plugin is now single jar packaged. So we will have to delete previous version from your extensions/plugin directory. And to copy the jar from the "php" module only now.
        Hide
        Akram Ben Aissi added a comment -

        Coverage computation is now delegated to sonar, to make Views work correctly.

        Show
        Akram Ben Aissi added a comment - Coverage computation is now delegated to sonar, to make Views work correctly.

          People

          • Assignee:
            Akram Ben Aissi
            Reporter:
            Anonymous
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: