@routerhub/agent-rules 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/AGENTS.base.md +3 -0
  2. package/package.json +1 -1
package/AGENTS.base.md CHANGED
@@ -52,6 +52,7 @@
52
52
  ## 测试用例规范
53
53
 
54
54
  - 所有测试用例必须包含中文断言或校验内容,确保覆盖中文场景。
55
+ - 编写测试用例时,测试描述、断言说明和相关说明文字统一使用中文。
55
56
  - 当同一个组件被复用时,传入 `fromType`(值为当前页面名)用于区分来源;组件内部差异逻辑基于 `fromType` 分支。
56
57
 
57
58
  ## 组件复用规则
@@ -66,6 +67,8 @@
66
67
  - 自动化测试默认必须使用真实接口数据,禁止使用 mock/route.fulfill/本地伪造返回;仅在明确同意的情况下才允许使用模拟数据。
67
68
  - UI 自动化测试必须请求真实的后端接口,不允许使用本地 mock 数据或截断真实请求。
68
69
  - 写完业务后,必须自动打开 UI 自动化测试页面,执行 `pnpm run test:e2e:ui`,让开发者手动点击验证功能效果。
70
+ - 只有在相关测试用例执行通过后,才允许继续执行 `npm run test:e2e:ui`;未通过时不得打开 UI 自动化测试页面。
71
+ - 当用户要求“加测试用例”时,必须主动执行 `npm run test:e2e:ui` 供开发者查看具体效果,并明确说明本次主要涉及的测试用例名称或编号。
69
72
  - 打开 UI 自动化测试后,应明确告知当前业务对应的具体测试用例名称或编号,让开发者清楚当前验证范围。
70
73
  - 自动化测试执行完毕后,自动打开 UI 界面,允许开发者进行手动验证。
71
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {