allure-framework / allure-framework/allure-python

tms link pattern missing in behave

Đang mở
#785 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
task:improvement theme:behave
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 mentions:

- Annotation for links
```
@allure.link:https://dev.example.com/
@allure.issue:UI-123
@allure.tms:TMS-456
```

- Link patterns configuration
```
[behave.userdata]
AllureFormatter.link_pattern = {}
AllureFormatter.issue_pattern = https://github.com/allure-framework/allure-python/issues/{}
AllureFormatter.hide_excluded = true
```
#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
How am I suppose to get the test case links if I don't have a way to provide Behave the link pattern ?

Is `AllureFormatter.tms_pattern` missing?

#### What is the expected behavior?
I should have `AllureFormatter.tms_pattern` so that `@allure.tms` decorators generate the right url link in the report.

#### What is the motivation / use case for changing the behavior?
I want to add `tms` link in a easy way, instead of using the generic `@allure.link` decorator.
The Pytest implementation offers the `--allure-link-pattern tms:https://github.com/allure-framework/allure-python/issues/{}` link pattern.
Why is the Behave implementation lacking the `tms` link pattern configuration ?

#### Please tell us about your environment:

- Allure version: 2.25.0
- Test framework: behave@1.2.6
- Allure adaptor: allure-behave@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 cấu hình Behave AllureFormatter và annotation @allure.tms được mô tả trong issue, sau đó so sánh chúng với phần triển khai mẫu liên kết của Pytest và tùy chọn --allure-link-pattern của nó. Hoàn tất nghĩa là Behave chấp nhận thiết lập AllureFormatter.tms_pattern và các liên kết @allure.tms tạo ra URL đã cấu hình trong báo cáo.

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
45/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.