Make collected pytest reports discoverable by the testcase parser

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python
Lĩnh vực
documentation, testing

Hướng nghiên cứu

Read .github/workflows/_test.yml to trace how pytest JUnit reports are produced and merged, then inspect src/extensions/score_source_code_linker/xml_parser.py around XML discovery. Check whether reports contain the source, line, and verification properties, and whether parser output creates the expected testcase needs and links without duplicate IDs across Python versions.

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

Mô tả

The test workflow collects pytest JUnit reports named docs_bzl_<python-version>_<suite>.xml and bundles them with Bazel reports. However, the testcase parser only discovers files named test.xml, so those pytest report files are not discovered by that parser.

See the report producers and merge job and XML discovery.

Suggested approach: keep the existing test.xml convention and place pytest reports in distinct directories, for example docs-bzl/3.12/cached/test.xml and docs-bzl/3.12/runtime/test.xml.

Please verify:

  • pytest JUnit output includes the source file, line and verification properties needed for testcase/requirement links;
  • reports are actually discovered and the expected testcase needs and links are generated;
  • repeated runs of the same testcase across Python versions do not create duplicate need IDs. Select a representative version or define deduplication explicitly.

Changing filenames alone does not guarantee correct traceability; verify the parser output as well.

Ngôn ngữ chính
Python
Star
11
Fork
39
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
46

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 eclipse-score/docs-as-code

Tất cả issue của eclipse-score/docs-as-code

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.