Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5170

rcov's screen.css/print.css not found in rcov reports used by rubyMetrics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • rubyMetrics-plugin
    • None
    • rubyMetrics 1.3, Hudson 1.337-1.1 (RPM package using Winstone/built-in app server), CentOS release 5.4 (Final) (Linux version 2.6.18-164.6.1.el5 (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46))) - browser used was Firefox 3.5.6 in OS X 10.6.2.

      To reproduce:

      • Browse in project to the rcov report in hudson and click on a file where you see the source of the file
      • Instead of seeing lines highlighted in green/red that are covered/uncovered, the CSS formatting is missing for the code highlighting

      Description of issue:

      • The HTML is linking to screen.css and print.css included in rcov that is not available in the rcov reports accessible via RubyMetrics in our installation at least. In our HTML it contains:
        <link href="screen.css" media="all" rel="stylesheet" type="text/css" />    <link href="print.css" media="print" rel="stylesheet" type="text/css" />
        

        and screen.css and print.css are not in the current directory so it can't find them (as was determined when using the web developer plugin for Firefox). However, it can find:

        <link type="text/css" rel="stylesheet" href="/plugin/rubyMetrics/css/style.css"></link>
        

        So as a workaround, we appended the screen.css contents to /plugin/rubyMetrics/css/style.css and it highlighted the lines as expected.

            david_calavera david_calavera
            garysweaver garysweaver
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: