bazelbuild / bazelbuild/rules_java
Extending BazelTestRunner to Add Custom Metadata to JUnit XML
- Ngôn ngữ chính
- Starlark
- Star
- 103
- Fork
- 102
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I've been working on extending the BazelTestRunner to add custom metadata (properties) to the JUnit XML generated by Stripe's Java tests, but I'm hitting a roadblock.
The most promising approach I've found involves using the TestPropertyExporter singleton instance, but I'm uncertain about how it's meant to be used. Additionally, when looking into the Bazel codebase, I noticed that the method testEmittedProperty() in TestSuiteModel.java seems related, but it isn't being called anywhere.
Any advice or alternative suggestions would be appreciated.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by tracing BazelTestRunner and the TestPropertyExporter singleton, then inspect TestSuiteModel.java and the unused testEmittedProperty() method. Determine how custom properties should flow into the JUnit XML and identify the relevant Java test coverage. Done means Stripe's Java test output includes the requested metadata and verifies it reliably.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- build-system, testing-qa
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 15/100