Integrated: 7903300: Add test library support to jtreg plugin
Guoxiong Li
gli at openjdk.org
Mon Dec 18 11:29:17 UTC 2023
On Sun, 11 Sep 2022 13:06:20 GMT, Guoxiong Li <gli at openjdk.org> wrote:
> Hi all,
>
> Currently, when we open a jtreg test file which uses the JUnit or TestNG, the plugin can't identify the related classes of the JUnit or TestNG. So the statement such as `import org.junit.Test` is marked as red with error message `Cannot resolve symbol 'junit'`.
>
> This patch adds the jtreg libraries directory to the lib path of the `Jetbrains IDEA` when opening the JUnit or TestNG test files so that the `Jetbrains IDEA` can identify the related classes.
>
> Thanks for taking the time to review.
>
> Best Regards,
> -- Guoxiong
This pull request has now been integrated.
Changeset: a396e2f8
Author: Guoxiong Li <gli at openjdk.org>
Committer: Christian Stein <cstein at openjdk.org>
URL: https://git.openjdk.org/jtreg/commit/a396e2f85d64e245f82269eed4d7d2b662c030b0
Stats: 144 lines in 4 files changed: 136 ins; 1 del; 7 mod
7903300: Add test library support to jtreg plugin
Reviewed-by: mcimadamore, jjg
-------------
PR: https://git.openjdk.org/jtreg/pull/117
More information about the jtreg-dev
mailing list