pzhang_zywl
|
076fb25eda
|
test: _measure_coverage overall 排除零内容维度 - Closes #36
CI / test (pull_request) Successful in 8s
添加 3 个回归测试验证 total=0 的维度不参与 overall 计算:
- 零内容维度被正确排除
- 所有维度有内容则全部参与
- 无内容时返回 0.0
fix 已在 1a867b0 合入,本次补充 UT 覆盖。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-02 14:20:38 +08:00 |
|
pzhang_zywl
|
1a867b0dcb
|
fix: _measure_coverage 零内容维度不再拉低 overall 覆盖率 - Closes #21
CI / test (pull_request) Successful in 8s
当某个维度(如图表)无内容时(total=0),rate 设为 1.0 且不参与 overall 均分。
此前 0/0 被算作 0%,将 overall 从 86.1% 拉低到 57.4%。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-02 14:05:29 +08:00 |
|
pzhang_zywl
|
119c08faca
|
test: _extract_content_units 仅统计功能章节表格行 - Closes #33
CI / test (pull_request) Successful in 9s
非功能章节(变更日志、术语解释等)的表格行不可能被
function_units 覆盖,计入分母会导致覆盖率虚低。
修复: table_rows 统计仅在 _is_functional_section
且 _has_section_content 的章节中进行。
Table 覆盖率: 54.2% → 72.2% (24行→18行分母)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-01 14:06:16 +08:00 |
|
pzhang_zywl
|
01c93e52d3
|
test: _has_section_content() 过滤空章节,修复章节覆盖率误报 - Closes #29
CI / test (pull_request) Successful in 9s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-01 10:16:23 +08:00 |
|
pzhang_zywl
|
a2fabcc7a6
|
test: 修复端到端管道运行器和 Layer B IndexError - Closes #14
CI / test (pull_request) Successful in 7s
- run_pipeline.py: 修复 subprocess env 传递、parsed_path 检测、Unicode 编码
- test_main_health.py: 修复 _is_functional_section 空章节名 IndexError
- 端到端测试管道: doc_parser → ir_generation(4 steps) → acceptance tests
- 测试发现问题汇总至 dev issue #15
|
2026-05-31 17:28:26 +08:00 |
|
pzhang_zywl
|
682dedb4b4
|
fix: 完善 UT 覆盖,统一 pytest 测试发现 - Closes #2
CI / test (pull_request) Successful in 9s
- 新建 pytest.ini 统一 test discovery(tests/ + skills/ir_generation_skill/tests/)
- test_step1~3 转换为 pytest 兼容格式,无输出文件时自动 skip
- 新增 tests/test_detect_conflicts.py(18 个纯函数单测)
- 新增 tests/test_config.py(7 个配置模块单测)
- CI 改为 pytest -v 使用 pytest.ini testpaths
- DEV_AGENT.md 新增 PR 提交规范
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-31 00:07:07 +08:00 |
|
pzhang_zywl
|
fec4c09ee0
|
sync: update all skills from latest workspace code
CI / test (push) Successful in 8s
doc_parser_skill:
- New: verify_flowchart.py (flowchart validation)
- Updated: LLM.py (multi-provider: DeepSeek + DashScope)
- Updated: image_parser.py (logic tree support, external prompts)
- Updated: SKILL.md, prompts/image_prompt.md
conflict_detection_skill:
- Updated: LLM.py (multi-provider sync)
- Updated: detect_conflicts.py (logic tree text conversion)
ir_generation_skill:
- Replaced old scripts/LLM.py + ir_generator.py with standalone project
- New: main.py, config.py, step1-3_*.py, ensemble_merge.py
- New: prompts/, tests/ subdirectories
tests:
- New: acceptance/ test suite with schema validation
- Fixed: conftest no longer globally skips non-acceptance tests
- Updated: test_sample.py for new ir_generation structure
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-30 22:45:08 +08:00 |
|