Cobertura returns "Source code is unavailable." for XML from gcovr

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: cobertura-plugin
    • None
    • Environment:
      Linux Fedora 5 / i386

      Cobertura is unable to display painted source code when code coverage XML is generated from the Unix command line "gcovr -x" and the plugin configuration is set to correct xml report pattern. Error is:

      Source code is unavailable. Some possible reasons are:

      • This is not the most recent build (to save on disk space, this plugin only keeps the most recent build's source code).
      • Cobertura found the source code but did not provide enough information to locate the source code.
      • Cobertura could not find the source code, so this plugin has no hope of finding it.

      The code coverage XML data file is located in the same directory as the source file.
      Note that the Trend diagram, Package Coverage Summary, File Coverage Summary, Class Coverage Summary display normally.

            Assignee:
            Stephen Connolly
            Reporter:
            jbargiel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: