Skip to content

Commit 0d8571c

Browse files
committed
chore: bump version to 3.9.37
- Fix: resolve ${workspaceFolder} in --configuration during discovery (#410) - Fix: remove duplicate configuration test - Docs: add keybinding tips for Test Results panel (#401) - Docs: add missing troubleshooting entry to Chinese README
1 parent ebe9855 commit 0d8571c

5 files changed

Lines changed: 107 additions & 10 deletions

File tree

packages/extension/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to the "vscode-phpunit" extension will be documented in this
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## [3.9.37] - 2026-04-02
8+
9+
### Fixed
10+
- Fix: resolve `${workspaceFolder}` in `--configuration` argument during test discovery (#410)
11+
- Fix: remove duplicate test for `${workspaceFolder}` configuration resolution
12+
13+
### Docs
14+
- Add keybinding tips for combining Test Results panel with test commands (#401)
15+
- Add missing "Test Results panel not opening" troubleshooting entry to Chinese README
16+
717
## [3.9.36] - 2026-03-13
818

919
### Fixed

packages/extension/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,46 @@ When using Docker from a WSL workspace, use the full WSL path as the local key:
288288
| `phpunit.run-by-group` | Run tests by group | — |
289289
| `phpunit.rerun` | Repeat last test run | `Cmd+T Cmd+L` |
290290

291+
### Keybinding Tips
292+
293+
Use VS Code's `runCommands` to combine opening the Test Results panel with running tests in a single shortcut:
294+
295+
```jsonc
296+
// .vscode/keybindings.json
297+
[
298+
{
299+
"key": "cmd+k cmd+r",
300+
"command": "runCommands",
301+
"args": {
302+
"commands": [
303+
"testing.showMostRecentOutput",
304+
"phpunit.run-test-at-cursor"
305+
]
306+
}
307+
},
308+
{
309+
"key": "cmd+k cmd+p",
310+
"command": "runCommands",
311+
"args": {
312+
"commands": [
313+
"testing.showMostRecentOutput",
314+
"phpunit.rerun"
315+
]
316+
}
317+
},
318+
{
319+
"key": "cmd+k cmd+f",
320+
"command": "runCommands",
321+
"args": {
322+
"commands": [
323+
"testing.showMostRecentOutput",
324+
"phpunit.run-file"
325+
]
326+
}
327+
}
328+
]
329+
```
330+
291331
## Troubleshooting
292332

293333
<details>

packages/extension/README.zh-TW.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,64 @@ services:
285285
| `phpunit.run-by-group` | 依群組執行測試 | — |
286286
| `phpunit.rerun` | 重新執行上次的測試 | `Cmd+T Cmd+L` |
287287

288+
### 快捷鍵技巧
289+
290+
使用 VS Code 的 `runCommands` 將開啟 Test Results 面板與執行測試合併為單一快捷鍵:
291+
292+
```jsonc
293+
// .vscode/keybindings.json
294+
[
295+
{
296+
"key": "cmd+k cmd+r",
297+
"command": "runCommands",
298+
"args": {
299+
"commands": [
300+
"testing.showMostRecentOutput",
301+
"phpunit.run-test-at-cursor"
302+
]
303+
}
304+
},
305+
{
306+
"key": "cmd+k cmd+p",
307+
"command": "runCommands",
308+
"args": {
309+
"commands": [
310+
"testing.showMostRecentOutput",
311+
"phpunit.rerun"
312+
]
313+
}
314+
},
315+
{
316+
"key": "cmd+k cmd+f",
317+
"command": "runCommands",
318+
"args": {
319+
"commands": [
320+
"testing.showMostRecentOutput",
321+
"phpunit.run-file"
322+
]
323+
}
324+
}
325+
]
326+
```
327+
288328
## 疑難排解
289329

330+
<details>
331+
<summary>Test Results 面板不會自動開啟</summary>
332+
333+
VS Code 預設不會自動開啟 Test Results 面板。若要在測試失敗時自動開啟(適合查看 `dd()` 輸出或錯誤訊息):
334+
335+
```jsonc
336+
{
337+
"testing.openTesting": "openOnTestFailure"
338+
}
339+
```
340+
341+
其他選項:`"openOnTestStart"`(測試開始時開啟)、`"neverOpen"`(永不自動開啟)。
342+
343+
> **注意:** `dd()` 的輸出會以原始輸出的形式顯示在 Test Results 面板中,因為它會在產生任何結構化測試結果之前就終止 PHP 程序。
344+
</details>
345+
290346
<details>
291347
<summary><code>${workspaceFolder}</code> 解析為 <code>/</code></summary>
292348

packages/extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "PHPUnit & Pest Test Explorer",
55
"icon": "img/icon.png",
66
"publisher": "recca0120",
7-
"version": "3.9.36",
7+
"version": "3.9.37",
88
"private": true,
99
"license": "MIT",
1010
"repository": {

packages/phpunit/src/Configuration/Configuration.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,4 @@ describe('Configuration Test', () => {
6969

7070
expect(await configuration.getConfigurationFile()).toBeUndefined();
7171
});
72-
73-
it('get phpunit.xml with ${workspaceFolder} in --configuration arg', async () => {
74-
const root = phpUnitProject('');
75-
const configuration = new Configuration({
76-
args: [`--configuration=\${workspaceFolder}/phpunit.xml`],
77-
});
78-
79-
expect(await configuration.getConfigurationFile(root)).toEqual(join(root, 'phpunit.xml'));
80-
});
8172
});

0 commit comments

Comments
 (0)