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

Playwright: support embedding Java sources in captured traces

Đang mở
#1,452 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 8 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
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, playwright
Lĩnh vực
testing-qa

Hướng nghiên cứu

Start by reading the Playwright tracing configuration and trace attachment path, then inspect how AllurePlaywrightAspect affects trace stack frames. Check Playwright's Tracing.StartOptions().setSources(true) and the PLAYWRIGHT_JAVA_SRC behavior. Done means the opt-in property embeds sources, stacks begin at the first file-backed frame (or skip leading weaving frames when none resolves), and errors attach the trace unchanged.

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

Mô tả

Problem

Allure configures Playwright tracing with screenshots and snapshots only, so Java sources can't be embedded in captured traces.

Playwright supports this via PLAYWRIGHT_JAVA_SRC and Tracing.StartOptions().setSources(true). But with Allure enabled, frame 0 of every trace stack is synthetic AspectJ weaving glue from AllurePlaywrightAspect, not the real caller. That makes the Trace Viewer's Source tab useless. Playwright only filters its own frames and builds the trace (a .zip) on its binary side, so it can't fix this itself.

Proposal
  • Add an opt-in allure.playwright.trace.sources property (default false) that embeds sources in the trace.
  • Rewrite the trace.stacks entry so each stack starts at the first file-backed frame. If no frame resolves, strip the leading AspectJ/Playwright weaving frames instead. On any error, attach the trace unchanged.

Implementation: #1450

Ngôn ngữ chính
Java
Star
390
Fork
243
Merge trung bình
8 ngày 23 giờ
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 allure-framework/allure-java

Tất cả issue của allure-framework/allure-java

Issue tương tự

Thêm issue về Java

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.