[cle-release-team] JUnit upgrade to at least 4.11?

Matthew Jones matthew at longsight.com
Mon Apr 15 15:45:53 PDT 2013


JUnit 4.11 is the latest version released.

It brings a pretty big improvement with JVM 7; more reliable tests and a
predictable method orders. There are 3 options
DEFAULT -  Deterministic order based on an internal comparator but not
predictable. (At least this means if it passes once, future failures aren't
because of the order, unless some new test is added?)
JVM - Order may vary from run to run
NAME_ASCENDING - Based on method alphabetic names

"Of course, well-written test code would not assume any order, but some
does, and a predictable failure is better than a random failure on certain
platforms."

https://github.com/junit-team/junit/blob/master/doc/ReleaseNotes4.11.md"

In kernel, junit is currently 4.8.2, in master junit is 3.8.1. Seems like
these could both be upgraded. It fixed a "seemingly random" test problem I
was seeing recently. I did this locally and they built without problems
(though that was expected) and the tool (dashboard) I was having random
failures with has been building reliably with this version upgraded
locally, was about 50% failure before.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/cle-release-team/attachments/20130415/d7205690/attachment-0006.html 


More information about the cle-release-team mailing list