-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathjava-gradle.yaml
More file actions
75 lines (66 loc) · 2.69 KB
/
Copy pathjava-gradle.yaml
File metadata and controls
75 lines (66 loc) · 2.69 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
74
75
# Test Plan: Gradle Project (from vscode-java-pack.wiki)
#
# Source: wiki Test-Plan.md "Gradle" scenario
# Verify: Open Gradle project → LS ready → no errors → Java file editing experience works
#
# Note: Uses the eclipse.jdt.ls subprojects test project (Gradle 8.5),
# because vscode-java's simple-gradle uses Gradle 4.10.2 which is incompatible with modern JDKs.
#
# Prerequisites:
# - eclipse.jdt.ls repo is cloned locally
# - JDK is installed and available
#
# Usage: autotest run test-plans/java-gradle.yaml
name: "Java Gradle Project — Basic Gradle Project Editing"
description: |
Corresponds to the Gradle scenario in the wiki Test Plan:
Open a Gradle 8.5 project, verify the language server starts without errors,
and Java file editing experience works (diagnostics, completion).
setup:
extension: "redhat.java"
extensions:
- "vscjava.vscode-java-pack"
vscodeVersion: "stable"
workspace: "../../eclipse.jdt.ls/org.eclipse.jdt.ls.tests/projects/gradle/subprojects"
timeout: 180 # Gradle project import can be slow (needs to download Gradle distribution)
steps:
# ── Step 1: Wait for Language Server ready ──────────────
# wiki: "check the status bar icon is 👍, and there should be
# no errors/problems in the problems view."
- id: "ls-ready"
action: "waitForLanguageServer"
verify: "Gradle workspace has loaded; Problems panel shows no errors"
verifyProblems:
errors: 0
timeout: 300
skipLlmVerify: true # waitForLanguageServer is authoritative; LLM only sees the same status bar
# ── Step 2: Open Foo.java and verify editing experience ─
# wiki: "Open Foo.java file, make sure the editing experience
# is correctly working including diagnostics, code completion
# and code action"
- id: "open-foo"
action: "open file Test1.java"
verify: "Test1.java file is opened in the editor"
timeout: 15
- id: "verify-completion"
action: "triggerCompletionAt endOfMethod"
verifyCompletion:
notEmpty: true
waitBefore: 3
# No `verify:` — the on-screen completion menu can lag behind the
# internal completion API on slower CI runners (screenshot may capture
# the "Loading..." indicator while the items are already in the list).
# Deterministic verifyCompletion above is authoritative.
# Verify the editor can type and save normally
- id: "goto-line"
action: "goToLine 2"
verify: "Cursor moved to line 2"
- id: "goto-end"
action: "goToEndOfLine"
- id: "type-comment"
action: "typeInEditor // gradle test marker"
verifyEditor:
contains: "// gradle test marker"
- id: "save-file"
action: "saveFile"
verify: "File saved"