jtreg, junit, and testng (was Re: Request for review : 7121314 : Behavior mismatch between AbstractCollection.toArray(T ) and its spec)
brian.goetz at oracle.com
Fri Mar 30 17:38:48 UTC 2012
> Similarly class Infrastructure could be reused over all JDK's tests. But
> personnally I would prefer to more and more use the JUnit framework. Is
> there already an existing example?
There's good news on this front. We are in the process of making TestNG
a supported test framework for writing unit and regression tests in
OpenJDK. TestNG inherits a lot of ideas from JUnit, so JUnit users
should find it easy to use, and there are plugins for all the big IDEs.
The goal you state -- making it easier to reuse test infrastructure --
is one of the reasons why we want to do this. Another is that many
people are already familiar / comfortable with this style of testing,
and therefore are more likely to contribute good tests.
I don't have a schedule for when this will be supported within the
OpenJDK build and test process, but we're working on it.
More information about the core-libs-dev