Skip to content

Commit 1127ffe

Browse files
author
wan
committed
新增 顶部运行菜单 增加AGENTS.test.md (用于AI可用的自动化测试文件)
1 parent 798711d commit 1127ffe

5 files changed

Lines changed: 869 additions & 744 deletions

File tree

changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# 更新日志
22

3-
## 4.5.2
3+
## 4.5.3
4+
* 新增 顶部运行菜单 增加AGENTS.test.md (用于AI可用的自动化测试文件)
5+
6+
## 4.5.2(2026-01-22)
47
* 新增 运行菜单中增加“运行单条test.js时记录到文件”功能
58

69
## 4.5.1

extension.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const { addFilePathToJestConfig } = require('./src/core/edit_jest_config_js_file
66

77
const Initialize = require('./src/Initialize.js');
88
const TestCaseCreate = require("./src/TestCaseCreate.js");
9+
const createAgentsMd = require('./src/createAgentsMd.js');
910
const { RunTest } = require("./src/TestCaseRun.js");
1011
const openReportOutputDir = require('./src/TestReports.js');
1112
const { RunTestForHBuilderXCli_main, readPluginsPackageJson } = require('./src/HBuilderXCli.js');
@@ -58,6 +59,12 @@ function activate(context) {
5859
});
5960
context.subscriptions.push(createTestCase);
6061

62+
// 创建 AGENTS.test.md 文件 (uni-app项目根目录,右键菜单)
63+
let createAgents = hx.commands.registerCommand('unitest.createAgentsMd', (param) => {
64+
createAgentsMd(param);
65+
});
66+
context.subscriptions.push(createAgents);
67+
6168
// 查看历史测试报告
6269
let reportHistory = hx.commands.registerCommand('unitest.reportHistory', (param) => {
6370
openReportOutputDir();

0 commit comments

Comments
 (0)