A startup connect failure should still write a valid JUnit report

Đang mở
#410 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.

  • #597 của @jay23606 — đã đóng, không merge

Đá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
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
testing

Hướng nghiên cứu

Start with the CLI startup connection failure path and the JUnit output writer, then find the tests for closed-port failures and JUnit parsing. Add coverage that checks the output file contains one error testcase per planned test file with the connect error, while the exit code stays unchanged. Document that local JUnit output is unscrubbed, add an additive CHANGELOG entry, and verify the upload payload remains scrubbed.

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

Mô tả

area/cli bug

Summary

When the CLI cannot connect to the agent at startup (for example a closed port), probe test --format junit -o results.xml returns the error before any result exists and writes no file. CI then has nothing to publish.

Acceptance criteria

  • The failure still writes a valid JUnit file with one <error> testcase per planned test file, carrying the connect error message.
  • The exit code is unchanged.
  • Covered by a test (closed port, junit output file exists and parses).
  • Local JUnit output stays unscrubbed; document that it is the user's own output and only the upload payload is scrubbed.
  • CHANGELOG entry (additive).
Ngôn ngữ chính
Go
Star
6
Fork
3
Merge trung bình
6 giờ 28 phút
Pull request đã merge (30 ngày)
362

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 AlphaWaveSystems/flutter-probe

Tất cả issue của AlphaWaveSystems/flutter-probe

Issue tương tự

Thêm issue về Go

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.