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

Add LSP4Jakarta tests #407

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

awisniew90
Copy link
Contributor

Add basic LSP4Jakarta tests for snippets, diagnostics, and quick fixes

Copy link
Member

@scottkurz scottkurz left a 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.
Copy link
Member

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>
Copy link
Member

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>
Copy link
Member

@scottkurz scottkurz Jun 26, 2023

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

@awisniew90 awisniew90 force-pushed the lsp_tests branch 6 times, most recently from 4a540f6 to ee1b6a0 Compare June 28, 2023 14:41
tests/pom.xml Outdated
@@ -38,6 +38,7 @@
<useUIThread>false</useUIThread>
<providerHint>junit5</providerHint>
<trimStackTrace>false</trimStackTrace>
<testRuntime>p2Installed</testRuntime>
Copy link
Member

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>
Copy link
Member

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?

Adam Wisniewski added 5 commits September 19, 2023 10:52
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants