jtreg, junit, and testng (was Re: Request for review : 7121314 : Behavior mismatch between AbstractCollection.toArray(T[] ) and its spec)
Ulf Zibis
Ulf.Zibis at gmx.de
Fri Mar 30 20:35:30 UTC 2012
Am 30.03.2012 19:38, schrieb Brian Goetz:
>> 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.
It seems, jtreg to JUnit bridge is already existing:
http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2009-October/002003.html
I also have found an example:
http://cr.openjdk.java.net/~jrose/6891770/webrev.00/test/java/dyn/MethodHandlesTest.java.html
-Ulf
More information about the core-libs-dev
mailing list