Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Trivial
-
Resolution: Fixed
-
Component/s: junit-plugin
-
Labels:
-
Environment:Hudson 1.381
-
Similar Issues:
Description
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).
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)