Skip to content
Permalink
Browse files

[JENKINS-7866] - Fix failed tests displaying as Yellow on "History fo…

…r 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 7ef1d37)
  • Loading branch information
Chris Arnott authored and olivergondza committed Feb 16, 2014
1 parent c504368 commit 4a6e59b34b792946a65f9907c40e14a300814f68
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/java/hudson/tasks/junit/History.java
@@ -228,8 +228,8 @@ public String generateToolTip(CategoryDataset dataset, int row,
}
};
plot.setRenderer(ar);
ar.setSeriesPaint(0,ColorPalette.RED); // Failures.
ar.setSeriesPaint(1,ColorPalette.YELLOW); // Skips.
ar.setSeriesPaint(0,ColorPalette.YELLOW); // Skips.
ar.setSeriesPaint(1,ColorPalette.RED); // Failures.
ar.setSeriesPaint(2,ColorPalette.BLUE); // Total.

// crop extra space around the graph

0 comments on commit 4a6e59b

Please sign in to comment.