allure-framework / allure-framework/allure-python

Add ability to add parametr to name of paramerised test case

Đang mở
#770 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
task:new feature
Ngôn ngữ chính
Python
Star
814
Fork
260
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện ví dụ được cung cấp với allure-pytest và pytest.mark.parametrize, sau đó kiểm tra cách @allure.title và các trường hợp được tham số hóa được biểu diễn trong tích hợp hiện có. Làm rõ cú pháp và quy tắc đặt tên dự kiến trước khi thay đổi bất kỳ điều gì; công việc được xem là hoàn tất khi tên của các bài kiểm thử được tham số hóa hiển thị rõ tham số đã chọn trong báo cáo Allure.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
testing
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.