allure-framework / allure-framework/allure-python
using pytest.mark.parametrize will miss some testcase in report
- 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ả
#### I'm submitting a ...
- [x] bug report
- [ ] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.
#### What is the current behavior?
when i use `pytest.mark.parametrize` ,in specific data situations, i got same historyId for two diffent testcase, when report cameout, only one of two testcase show in report.
#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Code to repeat :
```python
data = [
["", "admin", 12345],
["admin", "", 12345],
]
@pytest.mark.parametrize("name, account, phone_number", data)
def test_add_member(name, account, phone_number):
print(name, account, phone_number)
```
#### What is the expected behavior?
expected got 2 testcase in report
#### What is the motivation / use case for changing the behavior?
#### Please tell us about your environment:
- Allure version: 2.19.0
- Test framework: pytest@7.2.2
- Allure adaptor: allure-pytest@2.13.2
#### Other information
Becourse in `allure_pytest.util.get_history_id`, only use values in original_values to generate historyId
Maybe use both name and value will solve the problem
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong allure_pytest.util.get_history_id và tái hiện vấn đề với hai testcase được tham số hóa như trong báo cáo. Kiểm tra cách original_values được sử dụng để tạo historyId. Hoàn tất khi cả hai testcase khác nhau đều xuất hiện trong Allure report với các history IDs riêng biệt.
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
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 52/100