Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(parser): 支持解析模块/类/函数多层 mark 并去重#114

Merged
ambzhang merged 2 commits intomainOpenTestSolar/testtool-python-pytest:mainfrom
feat/support-multilayer-mark-collectionOpenTestSolar/testtool-python-pytest:feat/support-multilayer-mark-collectionCopy head branch name to clipboard
Dec 30, 2025
Merged

feat(parser): 支持解析模块/类/函数多层 mark 并去重#114
ambzhang merged 2 commits intomainOpenTestSolar/testtool-python-pytest:mainfrom
feat/support-multilayer-mark-collectionOpenTestSolar/testtool-python-pytest:feat/support-multilayer-mark-collectionCopy head branch name to clipboard

Conversation

@dzx-cptbtptp
Copy link
Collaborator

  • 改进 parse_case_attributes 使用 item.iter_markers() 包含全层级 mark
  • 实现 tags 的多层级收集(模块/类/函数)与去重逻辑
  • 支持 owner/extra_attributes/coding_testcase_id 的正确解析
  • 移除 getattr/hasattr,改用 try/except 与直接属性访问
  • 新增测试用例验证多层级 mark 解析功能
  • 添加集成测试在 test_collector.py 中验证实际解析结果

- 改进 parse_case_attributes 使用 item.iter_markers() 包含全层级 mark
- 实现 tags 的多层级收集(模块/类/函数)与去重逻辑
- 支持 owner/extra_attributes/coding_testcase_id 的正确解析
- 移除 getattr/hasattr,改用 try/except 与直接属性访问
- 新增测试用例验证多层级 mark 解析功能
- 添加集成测试在 test_collector.py 中验证实际解析结果
- Update project version and testtool.yaml to 0.1.73
- Regenerate uv.lock with updated dependency metadata (upload-time metadata)
- Update requirements.txt with enhanced dependency documentation
- Update CHANGELOG.md with multi-layer marker collection feature

This release includes support for parsing module/class/function level markers
with proper deduplication in test case attributes.
@ambzhang ambzhang merged commit 432e3fc into main Dec 30, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.