Skip to content

Commit

Permalink
[JENKINS-7866] - Fix failed tests displaying as Yellow on "History fo…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
Chris Arnott committed Dec 5, 2013
1 parent ad1c316 commit 7ef1d37
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 7ef1d37

Please sign in to comment.