allure-framework / allure-framework/allure-python

Package view for behave tests - The class label isn't displayed in the tree

Đang mở
#789 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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ả

[//]: # (
. Note: for support questions, please use Stackoverflow or Gitter**.
. This repository's issues are reserved for feature requests and bug reports.
.
. In case of any problems with Allure Jenkins plugin** please use the following repository
. to create an issue: https://github.com/jenkinsci/allure-plugin/issues
.
. Make sure you have a clear name for your issue. The name should start with a capital
. letter and no dot is required in the end of the sentence. An example of good issue names:
.
. - The report is broken in IE11
. - Add an ability to disable default plugins
. - Support emoji in test descriptions
)

#### 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?
The documentation says that it is posible to personalize the **package**, **class** and **method** of Behave tests in the **Package** view.
https://allurereport.org/docs/behave/

The **class** label isn't displayed in the report.

![image](https://github.com/allure-framework/allure-python/assets/16239820/b31b70cf-644c-454d-801d-4c2910e3b547)

#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Execute:
```
@allure.label.package:cucumber
Feature: Calculator

@allure.label.testClass:Calculator
@allure.label.testMethod:add()
Scenario Outline: Addition
Given I have a calculator
When I add "" and ""
Then the calculator returns ""

Examples:
| x | y | sum |
| 1 | 1 | 2 |
| 2 | 1 | 3 |
| 2 | 7 | 9 |

```
Generate the rapport

Open the **Package** view

Result: The **class** Calculator is not displayed in the tree

The actual tree is:
```
- cucumber
- #3 add
- #2 add
- #1 add
```
#### What is the expected behavior?
The **class** Calculator is displayed in the tree

The expected tree is:
```
- cucumber
- Calculator
- #3 add
- #2 add
- #1 add
```

#### What is the motivation / use case for changing the behavior?

#### Please tell us about your environment:

- Allure version: 2.26.0
- Test framework: pytest@7.4.4
- Allure adaptor: allure-pytest@2.13.2

#### Other information

[//]: # (
. e.g. detailed explanation, stacktraces, related issues, suggestions
. how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc
)

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

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

Hướng nghiên cứu

Bắt đầu với tài liệu Behave được liên kết trong issue và tái hiện báo cáo bằng feature, labels và expected tree được cung cấp. So sánh Package view được tạo ra với đầu ra được báo cáo; hoàn tất khi Calculator class xuất hiện giữa cucumber và các add tests riêng lẻ.

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
Khá rõ ràng
Mức phù hợp với người mới
35/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.