Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Cucumber JSON report is generated without skipped tests info

Đang mở
#567 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
testing

Hướng nghiên cứu

Tái hiện vấn đề bằng cấu hình pytest.ini hoặc CLI sử dụng --cucumber-json và trình báo cáo terminal gherkin, bao gồm một scenario @skip. Theo dõi cách các scenario pytest-bdd bị bỏ qua được biểu diễn trong Cucumber JSON được tạo ra. Hoàn thành khi báo cáo bao gồm scenario bị bỏ qua với trạng thái kết quả là skipped.

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

Mô tả

Environment:
platform darwin -- Python 3.9.12, pytest-7.1.2, pluggy-1.0.0
plugins: splinter-3.3.2, bdd-6.0.1, clarity-1.0.1

Steps to reproduce:

  1. Create simple pytest-bdd setup with feature file and tests.
  2. In feature file and default @skip flag like this:
    @skip
    Scenario: Test1
    When blabla
    Then blablabla
    Or any other way to skip test execution
  3. Run pytest with addopts = -vv -rsfx --cucumber-json=cucumber_report.json --gherkin-terminal-reporter --color=yes in pytest.ini or same alternative in CLI
  4. Gherkin terminal output will contain test_bla.py::test_bla <- venv/lib/python3.9/site-packages/pytest_bdd/scenario.py SKIPPED (unconditional skip)

Actual result:
5. cucumber.json file doesn't contain any info about skipped test at all

Expected result:
5. cucumber.json file contains info about skipped test (at least ..."result": {"status": "skipped"... )

Ngôn ngữ chính
Python
Star
1.5k
Fork
251
Merge trung bình
1 giờ 44 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pytest-dev/pytest-bdd

Tất cả issue của pytest-dev/pytest-bdd

Issue tương tự

Thêm issue về Python

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.