allure-framework / allure-framework/allure-python

allure-behave formatter doesn't generate json files if there is an exception in before_feature() method

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

When I run behave with allure formatter, and there is an exception in before_feature(), json files doesn't created, which means that when I generate allure report, I get no information about tests in that feature

There is sample project in attachment. Run it with `behave -f allure_behave.formatter:AllureFormatter -o output_folder`
[sample_project.zip](https://github.com/allure-framework/allure-python/files/2729380/sample_project.zip)

- Test framework: behave@1.2.6
- Allure adaptor: allure-behave@2.5.4

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

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

Hướng nghiên cứu

Start with the attached sample project and run `behave -f allure_behave.formatter:AllureFormatter -o output_folder` using behave 1.2.6 and allure-behave 2.5.4. Inspect the formatter entry point and existing tests for feature setup failures; done means the failing feature produces JSON files containing information when before_feature() raises an exception.

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.