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

junit report test count graph has wrong colours

      In Hudson's presentation of JUnit test results, the colours for failed and skipped tests are switched in the test count graph: failed tests are yellow, and skipped tests are red. This doesn't happen for the test duration graph (the default view).

      To reproduce, open "Test Result" for a build, open test history by clicking the "Took X seconds" link, and switch to count view through the "show count" link. Now compare the graph to the table below: it turns out that failed tests are displayed as yellow, and skipped tests as red.

      In the attached graph, tests are regularly skipped (shown as red), but the table shows that there has been no failure since build 1347 (shown as yellow).

          [JENKINS-7866] junit report test count graph has wrong colours

          evernat added a comment -

          I have reproduced this issue using Jenkins 1.428 (for the color of failed tests at least).
          In the "History for Test Results", when the counts are displayed (not the durations) the color of failed tests are yellow, whereas they are red everywhere else.
          For example, they are red in the history when durations are displayed and in the job's main page.

          evernat added a comment - I have reproduced this issue using Jenkins 1.428 (for the color of failed tests at least). In the "History for Test Results", when the counts are displayed (not the durations) the color of failed tests are yellow, whereas they are red everywhere else. For example, they are red in the history when durations are displayed and in the job's main page.

          Code changed in jenkins
          User: Chris Arnott
          Path:
          core/src/main/java/hudson/tasks/junit/History.java
          http://jenkins-ci.org/commit/jenkins/7ef1d37730997a06386670c343782e55fe4c029f
          Log:
          JENKINS-7866 - Fix failed tests displaying as Yellow on "History for Test Results" page.

          The colours where added in a different order to the data, resulting in failed tests displying as yellow and skipped tests displaying as red.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Chris Arnott Path: core/src/main/java/hudson/tasks/junit/History.java http://jenkins-ci.org/commit/jenkins/7ef1d37730997a06386670c343782e55fe4c029f Log: JENKINS-7866 - Fix failed tests displaying as Yellow on "History for Test Results" page. The colours where added in a different order to the data, resulting in failed tests displying as yellow and skipped tests displaying as red.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3092
          JENKINS-7866 - Fix failed tests displaying as Yellow on "History for Test Results" page. (Revision 7ef1d37730997a06386670c343782e55fe4c029f)

          Result = SUCCESS
          cta : 7ef1d37730997a06386670c343782e55fe4c029f
          Files :

          • core/src/main/java/hudson/tasks/junit/History.java

          dogfood added a comment - Integrated in jenkins_main_trunk #3092 JENKINS-7866 - Fix failed tests displaying as Yellow on "History for Test Results" page. (Revision 7ef1d37730997a06386670c343782e55fe4c029f) Result = SUCCESS cta : 7ef1d37730997a06386670c343782e55fe4c029f Files : core/src/main/java/hudson/tasks/junit/History.java

          Code changed in jenkins
          User: Chris Arnott
          Path:
          core/src/main/java/hudson/tasks/junit/History.java
          http://jenkins-ci.org/commit/jenkins/4a6e59b34b792946a65f9907c40e14a300814f68
          Log:
          JENKINS-7866 - Fix failed tests displaying as Yellow on "History for Test Results" page.

          The colours where added in a different order to the data, resulting in failed tests displying as yellow and skipped tests displaying as red.

          (cherry picked from commit 7ef1d37730997a06386670c343782e55fe4c029f)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Chris Arnott Path: core/src/main/java/hudson/tasks/junit/History.java http://jenkins-ci.org/commit/jenkins/4a6e59b34b792946a65f9907c40e14a300814f68 Log: JENKINS-7866 - Fix failed tests displaying as Yellow on "History for Test Results" page. The colours where added in a different order to the data, resulting in failed tests displying as yellow and skipped tests displaying as red. (cherry picked from commit 7ef1d37730997a06386670c343782e55fe4c029f)

            chrisa89 Chris Arnott
            mhenoch mhenoch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: