jtreg FAQ updates

Martin Buchholz martinrb at google.com
Thu Aug 16 16:26:03 UTC 2018


On Thu, Aug 16, 2018 at 9:01 AM, Jonathan Gibbons <
jonathan.gibbons at oracle.com> wrote:
>
> I was confused by this as well, but for junit.  The existing
> JSR166TestCase successfully and usefully defines multiple @run junit tests.
>
> Yes, JSR166TestCase provides a number of different tests in that one
> source file.
>
>
> I think the confusion has to do with """jtreg supports TestNG tests in
> two ways."""
>
> I'm confused by your confusion. Can you say more, so that I can try and
> improve the text in this area?
>
>
faq says:

"""The feature is supported in normal Java tests, in shell tests, and in
legacy applet tests. (It is not supported in JUnit or TestNG tests, which
do not use explicit test descriptions.)"""

But ... Both JUnit and TestNG tests can use """explicit test
descriptions""".  Unless they are Type 2 tests as described in 6.2

Further confusion - there's documented support for running "implicit"
testng tests but I don't see any such support for junit.  E.g. there's no
documented junit.dirs I can put into TEST.ROOT.


More information about the jdk-dev mailing list