Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 491b4757
authored
Aug 17, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: 补充基线测试修复方案
1 parent
fbb4bdd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
docs/superpowers/plans/2026-08-17-remove-sentry.md
docs/superpowers/specs/2026-08-17-remove-sentry-design.md
docs/superpowers/plans/2026-08-17-remove-sentry.md
View file @
491b475
...
...
@@ -18,6 +18,42 @@
---
### Task 0: 修复现有单测基线
**Files:**
-
Modify: tests/integration/journalRecord.api.spec.js
-
Modify: src/views/marketingManagement/marketingPushStrategy/
**
/
*
.spec.js(仅当前失败用例)
-
Modify: src/views/residentManage/taskCenter/view/detail/
**
/
*
.spec.js(仅当前失败用例)
-
Modify: src/views/financeManage/ysprepaymentManage/onlineDetail.spec.js
**Interfaces:**
-
Preserves: 当前已提交的业务行为和生产代码。
-
Repairs: 陈旧断言、缺失测试数据、错误测试上下文与 ROP helper 路径。
-
[
]
**Step 1: 逐组保持失败证据并同步测试契约**
按设计文档中的基线失败分类修改测试,不跳过或删除断言。营销策略分支 fixture 补齐
`conditionGroups: []`
;页面配置手工上下文补齐
`triggerMaterialJsonValidate`
;任务详情、财务汇总和营销条件断言对齐当前实现。
-
[
]
**Step 2: 运行原 11 个失败套件**
Expected: 11 个套件全部 PASS,ROP 集成用例在未设置
`ROP_INTEGRATION`
时正常 skip。
-
[
]
**Step 3: 运行完整单测基线**
Run:
~~~
powershell
npm run
test
:unit -- --runInBand
~~~
Expected: 73 个套件无失败;外部集成用例可按环境条件跳过。
-
[
]
**Step 4: 对修改的测试执行 ESLint 并提交**
Expected: ESLint 无诊断,提交只包含基线测试与本次设计/计划补充。
---
### Task 1: 建立独立的 GSC 签名模块
**Files:**
...
...
docs/superpowers/specs/2026-08-17-remove-sentry-design.md
View file @
491b475
...
...
@@ -19,6 +19,16 @@
-
不升级 Vue、axios 或构建工具。
-
不借机重构配置中心加载流程。
## 基线失败处理
当前完整单测基线包含 11 个失败套件、22 个失败用例。逐项结合提交历史与当前实现核对后,处理原则如下:
-
以已经提交的业务行为为准,不为了匹配旧断言回退营销条件默认值、多选枚举、任务详情换行展示、财务接口映射和金额格式。
-
更新营销、任务中心和财务模块中未随业务提交同步的测试数据与断言;页面配置测试改为直接验证数据或补齐方法上下文,避免重复挂载即时 watcher 造成 Vue Test Utils 假失败。
-
修正
`tests/integration/journalRecord.api.spec.js`
指向现有
`tests/helpers/ropTestClient.js`
的错误相对路径;未启用
`ROP_INTEGRATION`
时仍保持跳过外部集成请求。
-
营销策略编辑集成测试的分支数据补齐契约要求的
`conditionGroups`
,动作确认项改为验证项目常量配置,不改业务实现。
-
基线修复后先运行 11 个原失败套件,再运行全量单测;只有基线恢复后才继续验收 GSC 替换,避免新增改动掩盖既有问题。
## 方案
### Sentry 接入移除
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment