allure-framework / allure-framework/allure-python

Add ability to add parametr to name of paramerised test case

オープン
#770 コメント 3 件 リアクション 0 件 担当者 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
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。