Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 4a6e59b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/tasks/junit/History.java
Expand Up @@ -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
Expand Down

0 comments on commit 4a6e59b

Please sign in to comment.