bazelbuild / bazelbuild/rules_java
Extending BazelTestRunner to Add Custom Metadata to JUnit XML
- Langage dominant
- Starlark
- Étoiles
- 103
- Forks
- 102
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par suivre BazelTestRunner et le singleton TestPropertyExporter, puis examinez TestSuiteModel.java ainsi que la méthode inutilisée testEmittedProperty(). Déterminez comment les propriétés personnalisées doivent être intégrées au XML JUnit et identifiez la couverture de tests Java pertinente. Le travail est terminé lorsque la sortie des tests Java de Stripe inclut les métadonnées demandées et les vérifie de manière fiable.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- build-system, testing-qa
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 15/100