-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathjava-debugger.yaml
More file actions
63 lines (55 loc) · 2.52 KB
/
Copy pathjava-debugger.yaml
File metadata and controls
63 lines (55 loc) · 2.52 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
# Test Plan: Debugger for Java (from vscode-java-pack.wiki)
#
# Source: wiki Test-Plan.md "Debugger for Java" scenario
# Verify: Start debugging → Breakpoint hit → Step through → Variable inspection → Program output
#
# Uses simple-app project (App.java with main method)
#
# Prerequisites:
# - vscode-java repository cloned locally
# - JDK installed and available
#
# Usage: autotest run test-plans/java-debugger.yaml
name: "Java Debugger — Breakpoint Debugging"
description: |
Corresponds to the Debugger for Java scenario in the wiki Test Plan:
Open the simple-app project, set breakpoints, start debugging,
verify breakpoint hit and program output.
setup:
extension: "redhat.java"
extensions:
- "vscjava.vscode-java-pack"
vscodeVersion: "stable"
workspace: "../../vscode-java/test/resources/projects/eclipse/simple-app"
timeout: 60
steps:
# ── Wait for LS ready ───────────────────────────────────────
- id: "ls-ready"
action: "waitForLanguageServer"
verify: "Status bar shows Java Language Server is ready"
timeout: 120
# ── Open App.java ──────────────────────────────────────────
- id: "open-app"
action: "open file App.java"
verify: "App.java file is opened in the editor"
timeout: 15
# ── Set breakpoint ──────────────────────────────────────────
# wiki: "verify if the breakpoint is hit"
# App.java line 5 is System.out.println("Hello Java");
- id: "set-breakpoint"
action: "setBreakpoint 5"
verify: "Breakpoint set on line 5"
# ── Start debugging ────────────────────────────────────────
- id: "start-debug"
action: "startDebugSession"
verify: "Debug session started, debug toolbar is visible"
timeout: 30
# ── Verify debug console output ──────────────────────────────
# wiki: "program output is as expected"
- id: "wait-for-output"
action: "wait 5 seconds"
verify: "Program runs and produces output"
# ── Stop debugging ─────────────────────────────────────────
- id: "stop-debug"
action: "stopDebugSession"
verify: "Debug session stopped"