-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add LSP4Jakarta tests #407
base: main
Are you sure you want to change the base?
Conversation
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.
This only works in Junit plugin test, not tycho.
You need to make sure each of:
- io.openliberty.tools.eclipse.lsp4e
- org.eclipse.lsp4jakarta.jdt.core
are active during the test, using bundle MF, extrareqs, etc.
@@ -0,0 +1,202 @@ | |||
/******************************************************************************* | |||
* Copyright (c) 2022, 2023 IBM Corporation and others. |
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.
Just 2023 here?
@@ -35,6 +35,19 @@ | |||
<version>3.1.0</version> | |||
<scope>provided</scope> | |||
</dependency> |
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.
remove old dep?
@@ -13,7 +13,7 @@ | |||
--> | |||
<server description="Sample Servlet server"> | |||
<featureManager> | |||
<feature>jsp-2.3</feature> | |||
<feature>jakartaee-10.0</feature> |
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.
If we're actually starting the server (as I think we do in some of these tests), using the platform feature will add significantly more startup time. Better to stick with the EE 9/10-equivalent: pages-3.0/3.1
4a540f6
to
ee1b6a0
Compare
tests/pom.xml
Outdated
@@ -38,6 +38,7 @@ | |||
<useUIThread>false</useUIThread> | |||
<providerHint>junit5</providerHint> | |||
<trimStackTrace>false</trimStackTrace> | |||
<testRuntime>p2Installed</testRuntime> |
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.
What does this do?
@@ -102,6 +103,16 @@ | |||
<id>org.eclipse.lsp4e.jdt</id> | |||
<versionRange>0.0.0</versionRange> | |||
</requirement> | |||
<requirement> |
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.
We have one for lsp4mp but not lsp4jakarta?
90421a4
to
7436fba
Compare
cc9381c
to
eda08f1
Compare
Signed-off-by: Adam Wisniewski <[email protected]>
Signed-off-by: Adam Wisniewski <[email protected]>
Signed-off-by: Adam Wisniewski <[email protected]>
Signed-off-by: Adam Wisniewski <[email protected]>
Signed-off-by: Adam Wisniewski <[email protected]>
eda08f1
to
224112f
Compare
Add basic LSP4Jakarta tests for snippets, diagnostics, and quick fixes