allure-framework / allure-framework/allure-python

Add ability to add parametr to name of paramerised test case

未关闭
#770 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
task:new feature
主要语言
Python
星标
814
派生
260
PR 合并指标
30 天内没有已合并 PR

描述

Hello.
#### I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

It would be great to have ability to add parameter to name of parameterized test case.

#### What is the current behavior?
If I have a huge number of parameters in my test case it becomes tricky to find righr one in allure report.
![image](https://github.com/allure-framework/allure-python/assets/63786538/4f1f1271-78f1-4ba2-94af-fa26718bf3dd)
```
@allure.title('TEST')
@pytest.mark.parametrize('browser_manager', [param1, param2, param3, param4, param5, param6], indirect=True)
def test():
with allure.step('1'):
pass
with allure.step('2'):
pass

```
#### What is the expected behavior?
It would be great to have ability to add parameter to name of parameterized test case.
![test](https://github.com/allure-framework/allure-python/assets/63786538/a41ad193-ea2b-4fb2-a02c-86815d7efcf4)

#### Please tell us about your environment:

- Allure version: 4.21.0
- Test framework: pytest@7.4.0
- Allure adaptor: allure-pytest@2.13.2

贡献指南

打开贡献指南

调研方向

首先使用 allure-pytest 和 pytest.mark.parametrize 复现所提供的示例,然后检查现有集成中如何表示 @allure.title 和参数化用例。在进行任何更改之前,明确预期的语法和命名规则;当参数化测试名称在 Allure 报告中清楚地显示所选参数时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。