Commit bfd230e
ci: add auto test plan and cases in github actions (#1607)
* feat: add E2E autotest plans and GitHub Action workflow
Add 16 YAML test plans covering all wiki Test-Plan.md scenarios:
- Basic editing (#1-9): snippets, code actions, imports, rename, new file
- Maven / Maven Multimodule / Gradle projects
- JDK 25 compatibility (Maven + Gradle)
- Single file / Single file without workspace
- Debugger, Test Runner, Dependency Viewer
- Maven for Java (Resolve Unknown Type)
- Java Extension Pack (Configure Classpath)
- Fresh Import (Spring Petclinic, auto-clone)
GitHub Action (manual trigger):
- Runs all test plans on windows-latest
- Uploads test-results/ (screenshots + JSON) as artifact
- Supports running a single plan via workflow_dispatch input
Uses @vscjava/vscode-autotest CLI for execution.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: adjust GitHub Action checkout paths for CI
- Checkout all repos into GITHUB_WORKSPACE (no ../ paths)
- Set working-directory to vscode-java-pack for autotest
- Upload results from vscode-java-pack/test-results/
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* chore: translate all test plans from Chinese to English
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: add JDK 25 setup for java25 e2e test plans
The java-gradle-java25 and java-maven-java25 test plans require JDK 25
at 'C:\Program Files\Java\jdk-25', but the pipeline only installed JDK 21.
This caused the Language Server to fail to start, timing out on the
ls-ready step.
- Install JDK 25 via setup-java before JDK 21
- Create a directory junction at the expected path
- JDK 21 remains the default JAVA_HOME
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* refactor: simplify E2E workflow to clone javaext-autotest directly
Instead of installing @vscjava/vscode-autotest globally and maintaining
duplicate test plans in this repo, the workflow now:
- Clones wenytang-ms/javaext-autotest as a sibling directory
- Runs npm ci && npm run build to set up the framework
- Executes test plans directly from javaext-autotest/test-plans/
This keeps test plans in a single source of truth (javaext-autotest)
and avoids version drift between the npm package and latest changes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: update
* ci: update
* ci: update
* refactor: use npm package for autotest CLI and test plans
- Install @vscjava/vscode-autotest from npm instead of cloning repo
- Test plans now come from npm package (single source of truth)
- Support local overlay via test-plans-local/ directory
- Matrix CI runs each plan in parallel with rerun support
- Analyze job aggregates results with LLM analysis and Job Summary
- Delete stale test-plans/ from repo (now in npm package)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* refactor: test plans in repo, CLI from npm package
- Test plans live in vscode-java-pack repo (source of truth for this project)
- CLI tool installed from npm: @vscjava/vscode-autotest
- Updated test plans with all latest fixes (debug, resolve-type, etc.)
- Removed npm package sync steps from workflow
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: update
* chore: remove AGENTS.md from PR
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: address PR review comments
- Replace Invoke-Expression with safe '& autotest @Args' invocation
- Fix debugger verify text: stepOver keeps paused, not 'continued'
- Fix typo: 'auto-generate' → 'auto-generated'
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a848ef1 commit bfd230e
File tree
17 files changed
+513
-313
lines changed- .github/workflows
- test-plans
17 files changed
+513
-313
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
13 | 36 | | |
| 37 | + | |
| 38 | + | |
14 | 39 | | |
15 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
16 | 45 | | |
17 | 46 | | |
18 | | - | |
| 47 | + | |
19 | 48 | | |
20 | | - | |
21 | | - | |
22 | 49 | | |
23 | 50 | | |
24 | 51 | | |
| |||
37 | 64 | | |
38 | 65 | | |
39 | 66 | | |
40 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
41 | 81 | | |
42 | 82 | | |
43 | 83 | | |
| |||
46 | 86 | | |
47 | 87 | | |
48 | 88 | | |
49 | | - | |
| 89 | + | |
| 90 | + | |
50 | 91 | | |
51 | | - | |
52 | 92 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
74 | 99 | | |
| 100 | + | |
| 101 | + | |
75 | 102 | | |
76 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
77 | 203 | | |
78 | 204 | | |
79 | 205 | | |
80 | 206 | | |
81 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
82 | 264 | | |
0 commit comments