allure-framework / allure-framework/allure-python

Add ability to add parametr to name of paramerised test case

Open
#770 3 comments 0 reactions 0 assignees View on GitHub
task:new feature
Dominant language
Python
Stars
814
Forks
260
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the provided example with allure-pytest and pytest.mark.parametrize, then inspect how @allure.title and parameterized cases are represented in the existing integration. Clarify the intended syntax and naming rules before changing anything; done means parameterized test names expose the selected parameter clearly in the Allure report.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.