-
Notifications
You must be signed in to change notification settings - Fork 6.2k
JDK-8272853: improve JavadocTester.runTests
#6983
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
JDK-8272853: improve JavadocTester.runTests
#6983
Conversation
|
👋 Welcome back jjg! A progress list of the required criteria for merging this PR into |
|
@jonathan-gibbons The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
|
Making the boilerplate to call test methods with a path object obsolete is a very welcome enhancement. Can and should we update existing tests that use the explicit method -> path function to the new form? You say that the new forms that take a list of method names could be used by passing the method names as command line arguments. That functionality is not included in this PR as far as I can see. Is that planned for a later time? |
|
@jonathan-gibbons This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
hns
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for letting this linger for so long. I asked some questions in the comments, but that was not meant to block the PR. The changes look good to me.
|
@jonathan-gibbons This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
|
@hns I tweaked the new "self-test" to address failures seen on some platforms. FWIW, the issue did not show up earlier, because the order of methods returned by |
|
Thanks for the explanation, looks good to me! |
|
/integrate |
|
Going to push as commit b0028a4.
Your commit was automatically rebased without conflicts. |
|
@jonathan-gibbons Pushed as commit b0028a4. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review a medium simple test-only fix to improve the
JavadocTesterrunTestsmethods.Currently, there are two overloads: one to invoke no-args test methods, and another to invoke test methods with args, such as a method-specific
Path. This latter one is slightly inconvenient to use, since it requires the boilerplate use of a function to create the arguments.The first overload is updated in a backwards compatible way, to examine the parameters of methods annotated with
@Test, and to recognize common patterns: namely no-args methods and(Path)methods, without the need for any additional function. The second overload is retained by backwards compatibility, until if and when we decide it is no longer required.In addition, two new overloads are added, similar to the first two, but with the addition of an extra parameter to decide which methods should be invoked. This is primarily a debugging aid. Using these overloads, it is easy to specify, on the command line used to run the test, the methods to be executed.
A new test is added to test the new functionality.
Progress
Issue
JavadocTester.runTestsReviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6983/head:pull/6983$ git checkout pull/6983Update a local copy of the PR:
$ git checkout pull/6983$ git pull https://git.openjdk.java.net/jdk pull/6983/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6983View PR using the GUI difftool:
$ git pr show -t 6983Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6983.diff