allure-framework / allure-framework/allure-python
Test's name contains dict's value instead of dict's key in allure
- Dominant language
- Python
- Stars
- 814
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
Stack: python, pytest, selenium.
To parametrize tests I use **pytest_generate_tests**:
`metafunc.parametrize(fixture, test_data.values(), ids=[key for key, value in test_data.items()])`
In allure test looks like this:

But in IDE (Pycharm) it looks as it should be:
`test_home_page.py::test_add_not_existing_product[Hot products]`
Is it possible to show dict's key in allure too?
Contributor guide
Research direction
Start with the pytest_generate_tests parametrization shown in the issue and inspect how Allure derives parameterized test names. Compare the generated Allure name with PyCharm's displayed key-based name; done means the Allure report shows each dictionary key rather than its value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100