allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

allure-pytest 2.13.2 will merge parameterized use cases

Open puhong112 opened this issue 2 years ago • 2 comments

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

puhong112 avatar Oct 10 '23 02:10 puhong112

Seems related to https://github.com/allure-framework/allure-python/issues/341

joaonc avatar Nov 08 '23 19:11 joaonc

Hi, @puhong112 !

Could you please share the values of casesList for two merged tests?

delatrie avatar Dec 06 '23 11:12 delatrie