allure-framework / allure-framework/allure-python
Allure report doesn't take in correct number of tests when using parametrized tests where tests parameters are duplicated
- 主要言語
- Python
- スター
- 814
- フォーク
- 260
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**Describe the Bug**
Allure report doesn't take in correct number of tests when using parametrized tests where tests parameters are duplicated.
**Steps to Reproduce**
1. Create a Python virtual env
2. Install allure-pytest
3. Create example tests to reproduce:
import pytest
@pytest.mark.parametrize(
'a, b',
[
(1, 1),
(1, 1)
]
)
def test_one(a, b):
assert a == b
4. Run tests using `pytest --clean-alluredir --alluredir=/tmp/allure-results`
5. Generate allure report `allure generate /tmp/allure-results/ --clean --output /tmp/allure-results/allure-report --single-file`
6. Open Allure report
**Expected Behaviour**
The report is generated without errors and the report shows 2 tests.
**Screenshots or Additional Context**
_Current version:_

pip freeze:
allure-pytest==2.14.2
allure-python-commons==2.14.2
attrs==25.3.0
iniconfig==2.1.0
packaging==25.0
pluggy==1.6.0
pytest==8.3.5
_Version 2.9.44 (expected working result):_

pip freeze:
allure-pytest==2.9.44
allure-python-commons==2.9.44
attrs==25.3.0
iniconfig==2.1.0
packaging==25.0
pluggy==1.6.0
pytest==8.3.5
six==1.17.0
**What Language are you using?**
Python 3.11.12
**What Framework/Allure Integration you are using?**
Pytest
**What version of Allure Integration you are using?**
2.34.0
**What version of Allure Report you are using?**
Latest
**Code of Conduct**
I agree to follow this project's Code of Conduct
コントリビューションガイド
調査の方向性
提供されたパラメーター化された pytest の例と、記載されている --clean-alluredir および allure generate コマンドを使用して問題を再現します。生成されたレポートを期待されるバージョンと比較し、重複したパラメーターが結果内でどのように表現されているかを追跡します。レポートがエラーなしで生成され、2 tests と表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100