RFR: CODETOOLS-7903267: Support executing a single test method in a JUnit class
Jonathan Gibbons
jjg at openjdk.org
Tue Sep 13 17:05:10 UTC 2022
On Mon, 12 Sep 2022 06:43:22 GMT, Ludvig Janiuk <lujaniuk at openjdk.org> wrote:
> Does the new syntax allow skipping that part of the test? I.e., can I use the new granularity for exclusion, as well as inclusion?
No, not at this time. It would be better to debug and fix the test method so that it does not need to be excluded!
However, as far as jtreg is concerned, there is no semantics to the query string; it is up to the test (runner) to interpret the string, and that could support an extended syntax, such as exclusion `test-path?-method` or a list `test-path?m1,m2`.
But I think we should wait to see a compelling use case for such forms.
Note also that you can always use JUnit Platform directly to execute a test, and with that, you have the full power of the JUnit platform command line.
-------------
PR: https://git.openjdk.org/jtreg/pull/115
More information about the jtreg-dev
mailing list