Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ability to run a single sub-test for tests under jtreg. #6067

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

jlahoda
Copy link
Contributor

@jlahoda jlahoda commented Jun 10, 2023

New versions of jtreg (the test framework for OpenJDK) support running a single test method. This patch adds support for this for junit, testng and javac's internal framework TestRunner, to run individual test methods. It also fixes some problems found along the way: JUnit 5 support for jtreg tests, test method inside a class marked as test are recognized for TestNG.


^Add meaningful description above

By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -

  • are all your own work, and you have the right to contribute them.
  • are contributed solely under the terms and conditions of the Apache License 2.0 (see section 5 of the license for more information).

Please make sure (eg. git log) that all commits have a valid name and email address for you in the Author field.

If you're a first time contributor, see the Contributing guidelines for more information.

If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.

@jlahoda jlahoda added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Jun 10, 2023
@jlahoda jlahoda requested a review from dbalek June 10, 2023 15:57
@mbien mbien added this to the NB19 milestone Jun 10, 2023
Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

we might want to integrate #6194 first, since it enables some tests which would give this better coverage

@mbien
Copy link
Member

mbien commented Jul 15, 2023

going to resolve merge conflict in project.xml locally, force push and merge once green again

@mbien mbien force-pushed the jtreg-run-single-test-case branch from 0ac384f to 404322f Compare July 15, 2023 23:14
@mbien mbien merged commit 622dbf0 into apache:master Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants