jtreg, junit, and testng (was Re: Request for review : 7121314 : Behavior mismatch between AbstractCollection.toArray(T[] ) and its spec) (original) (raw)
Brian Goetz brian.goetz at oracle.com
Mon Apr 2 17:47:32 UTC 2012
- Previous message: RFR 6963841: java/util/concurrent/Phaser/Basic.java fails intermittently
- Next message: jtreg, junit, and testng (was Re: Request for review : 7121314 : Behavior mismatch between AbstractCollection.toArray(T[] ) and its spec)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yes. We'll be migrating those to TestNG as part of the process.
On 3/30/2012 4:35 PM, Ulf Zibis wrote:
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
- Previous message: RFR 6963841: java/util/concurrent/Phaser/Basic.java fails intermittently
- Next message: jtreg, junit, and testng (was Re: Request for review : 7121314 : Behavior mismatch between AbstractCollection.toArray(T[] ) and its spec)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]