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

Pluging failure parsing code coverage report

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: None
    • Environment:
      Win2k8
      Jenkins 1.472
      Sonar 3.1.1
      PHP 5.3.9-ZS5.6.0
      PHPUnit 1.3.2

      Description

      Hi,

      I have a coverage xml report file that the sonar PHP plugin does not seem to parse correctly. It consistently throws the following:

      Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: Report file is invalid, plugin will stop.

      Caused by: org.sonar.api.utils.SonarException: Report file is invalid, plugin will stop.

      Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: snapshot : snapshot

      I suspect its saying it doesn't understand the first element in the coverage.xml file, but why would that be? Example:

      <?xml version="1.0" encoding="UTF-8"?>
      <snapshot methodcount="23" methodscovered="10" statementcount="67" statementscovered="67" totalcount="90" totalcovered="77">
      <package name="default" methodcount="23" methodscovered="10" statementcount="67" statementscovered="67" totalcount="90" totalcovered="77">
      <!-- ..more report.. -->

      I'm not sure how to continue testing this. I'd appreciate any ideas about whats going on here. Thanks in advance.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: