On 03/30/2012 07:38 PM, Brian Goetz wrote:
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.


just pedantically, TestNG was written after JUnit3 but before JUnit4, i.e before JUnit uses annotations,
so JUnit4 inherits from a lot of ideas of TestNG too.

Rémi


Reply via email to