-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathjava-maven.yaml
More file actions
73 lines (63 loc) · 2.77 KB
/
Copy pathjava-maven.yaml
File metadata and controls
73 lines (63 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Test Plan: Java Maven Project (from vscode-java-pack.wiki)
#
# Source: wiki Test-Plan.md "Maven" scenario
# Verify: Open Maven project → LS ready → basic editing experience (diagnostics, completion, Code Action)
#
# Prerequisites:
# - vscode-java repo cloned locally
# - JDK installed and available
# - Maven installed
#
# Usage: autotest run test-plans/java-maven.yaml
name: "Java Maven Project — Project Import and Basic Editing"
description: |
Corresponds to the Maven scenario in the wiki Test Plan:
Open the Maven project salut, verify the language server starts normally,
and verify basic editing experience including diagnostics, code completion, and Code Action.
setup:
extension: "redhat.java"
extensions:
- "vscjava.vscode-java-pack"
vscodeVersion: "stable"
workspace: "../../vscode-java/test/resources/projects/maven/salut"
timeout: 90 # Maven project import may be slow
steps:
# ── Step 1: Wait for language server ready ──────────────────────────
# wiki: "status bar icon is 👍, problems view has several warnings but without errors"
- id: "ls-ready"
action: "waitForLanguageServer"
verify: "Maven workspace has loaded; the Java extension is initialized and pom.xml is visible in the Explorer (the Problems panel may briefly show diagnostics that are still being recomputed after import)"
# waitForLanguageServer is authoritative — skip LLM screenshot re-check.
skipLlmVerify: true
timeout: 120
# ── Step 2: Open Java file and verify editing experience ─────────────────
# 2a. Open file
- id: "open-java-file"
action: "open file Foo.java"
verify: "Foo.java file is open in the editor"
waitBefore: 5
timeout: 10
# 2b. Verify code completion
- id: "verify-completion"
action: "triggerCompletionAt endOfMethod"
verify: "Code completion has been triggered in Foo.java; the IntelliSense popup is being rendered (the language server may briefly show a 'Loading...' indicator while computing suggestions on a cold cache — this is a valid intermediate state since the deterministic verifyCompletion.notEmpty asserts the LS produced completion items)"
verifyCompletion:
notEmpty: true
waitBefore: 8
# Retry once on cold-cache "Loading..." LLM downgrades.
retries: 1
# 2c. Verify cursor navigation (goToLine)
- id: "goto-line"
action: "goToLine 10"
verify: "Cursor moved to line 10"
- id: "goto-end-of-line"
action: "goToEndOfLine"
# 2d. Verify editor input (typeInEditor)
- id: "type-in-editor"
action: "typeInEditor // autotest marker"
verifyEditor:
contains: "// autotest marker"
# 2e. Save file
- id: "save-file"
action: "saveFile"
verify: "File saved"