RFR: CODETOOLS-7903267: Support executing a single test method in a JUnit class
Jonathan Gibbons
jjg at openjdk.org
Mon Sep 12 22:57:00 UTC 2022
On Mon, 12 Sep 2022 09:42:59 GMT, Christian Stein <cstein at openjdk.org> wrote:
> As the title of this issue and pull request states, this new syntax only supports running one specific test (method) of a JUnit test (class).
>
> A more general test selection and filter feature could be described and implemented in a separate feature request. Maybe supporting (a subset of) all JUnit Platform's selection and filter options: https://junit.org/junit5/docs/current/user-guide/#running-tests-console-launcher-options
Yes, but ...
The primary design center of the jtreg support for TestNG and JUnit to to bulk run these tests as part of a larger test run, perhaps as part of a test group or tier. The ability to run a single method is potentially interesting, for debugging purposes. The more that folk want to use more of the TestNG and JUnit features, the more they should be using those tools directly, or perhaps using an IDE, especially for "self-contained" tests. The exception is probably the tests that require features like native code libraries that is more conveniently provided by the "make test" feature in the makefiles.
-------------
PR: https://git.openjdk.org/jtreg/pull/115
More information about the jtreg-dev
mailing list