Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

allure-pytest 2.13.2 will merge parameterized use cases

未關閉
#772 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
42/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
testing

研究方向

首先使用 pytest 7.1.0 和 allure-pytest 2.13.2,透過 @pytest.mark.parametrize() 重現問題,然後將產生的報告與 allure-pytest 2.13.1 的報告進行比較。當每個參數化使用案例都有自己的執行結果,包括失敗的案例及其重試,而不是被合併到 Retries 底下時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

Bug Description

When using @pytest.mark.parametrize() parametrization, the use cases are merged in the generated allure report, and it is not possible to generate an execution result record for each parametrized use case.

Steps to reproduce

image

Getting report results

The @pytest.mark.parametrize() parameterization executes four use cases, three of which pass and one of which fails, and sets the failing use case to retry once, and after the execution is complete, the generated allure report can only see the last report record, and the other use case executions are all categorized under " Retries" below
image

Expected Result

It is possible to display execution results for each use case individually, as in allure-pytest 2.13.1.
image

Running environment
  • Allure version: 2.13.0
  • Test framework: pytest 7.1.0
  • Allure adaptor: allure-pytest 2.13.2
主要語言
Python
星號
820
分支
262
平均合併
3 小時 20 分鐘
30 天內合併 PR
3

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

allure-framework/allure-python 的其他 Issue

查看 allure-framework/allure-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。