Skip to content

Add server.env LCLS test automation (#437, issues #376, #422, #424) #611

Merged
sharma1208 merged 5 commits into
OpenLiberty:mainfrom
sharma1208:server-env-tests
Jun 29, 2026
Merged

Add server.env LCLS test automation (#437, issues #376, #422, #424) #611
sharma1208 merged 5 commits into
OpenLiberty:mainfrom
sharma1208:server-env-tests

Conversation

@sharma1208

@sharma1208 sharma1208 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Implements automated integration tests for Liberty Language Server (liberty-ls)
features in server.env files, closing issues #376 , #422 , and #424. Closes overarching larger issue #437

Note: depends on the Page Object Model and shared test suite
refactor which have not yet been merged.

Changes:

@sharma1208 sharma1208 requested a review from mattbsox June 25, 2026 14:17
@sharma1208

Copy link
Copy Markdown
Contributor Author

force rebase due to changes on POM refactoring moving methods to editorUtils.ts #606

Comment thread src/test/shared/serverEnvSuite.ts Outdated
…rty#422, OpenLiberty#424)

Implements automated integration tests for Liberty Language Server (liberty-ls)
features in server.env files, closing issues OpenLiberty#376, OpenLiberty#422, and OpenLiberty#424.

Note: depends on the Page Object Model (#2b9cec9) and shared test suite
refactor (#1f2e2a4) which have not yet been merged.

Changes:
- src/test/shared/serverEnvSuite.ts (new): shared parameterised test suite
  covering three LCLS features in server.env:
    - Hover support for WLP_USER_DIR and LOG_DIR (issue OpenLiberty#424)
    - Type-ahead/completion: WLP_LOG -> WLP_LOGGING_MESSAGE_FORMAT (issue OpenLiberty#422)
    - Diagnostics + quick fix for invalid variable values (issue OpenLiberty#376)

- src/test/MavenTestLSPServerEnv.ts (new): Maven entry-point wiring the
  shared suite with Maven project path and hover test cases

- src/test/resources/maven/.../server.env (new): empty server.env resource
  file for the Maven test wrapper app (populated dynamically by tests)

- src/test/pages/ProblemsPage.ts: fixed hasDiagnostic() to use its
  message and markerType parameters instead of hardcoded values,
  making it reusable across all test suites
@sharma1208 sharma1208 requested a review from mattbsox June 29, 2026 15:31
@sharma1208 sharma1208 merged commit b7d434f into OpenLiberty:main Jun 29, 2026
0 of 8 checks passed
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