bazelbuild / bazelbuild/rules_java

Extending BazelTestRunner to Add Custom Metadata to JUnit XML

未關閉
#261 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
P3
主要語言
Starlark
星號
103
分支
102
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

開啟貢獻指南

研究方向

先追蹤 BazelTestRunner 和 TestPropertyExporter 單例,接著檢查 TestSuiteModel.java 以及未使用的 testEmittedProperty() 方法。判定自訂屬性應如何流入 JUnit XML,並找出相關的 Java 測試涵蓋範圍。完成的標準是 Stripe 的 Java 測試輸出包含所要求的中繼資料,並能可靠地驗證這些資料。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
build-system, testing-qa
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
15/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。