allure-framework / allure-framework/allure-python
Test's name contains dict's value instead of dict's key in allure
未关闭
task:new feature
theme:pytest
- 主要语言
- Python
- 星标
- 814
- 派生
- 260
- PR 合并指标
- 30 天内没有已合并 PR
描述
Stack: python, pytest, selenium.
To parametrize tests I use **pytest_generate_tests**:
`metafunc.parametrize(fixture, test_data.values(), ids=[key for key, value in test_data.items()])`
In allure test looks like this:

But in IDE (Pycharm) it looks as it should be:
`test_home_page.py::test_add_not_existing_product[Hot products]`
Is it possible to show dict's key in allure too?
贡献指南
调研方向
从 issue 中展示的 pytest_generate_tests 参数化开始,检查 Allure 如何推导参数化测试的名称。将生成的 Allure 名称与 PyCharm 显示的基于键的名称进行比较;当 Allure 报告显示每个字典键而不是其值时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- testing
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100