Make docs.bzl tests easier to understand and extend
Les mainteneurs répondent en général sous 1 jour
@MaximilianSoerenPollak y travaille déjà.
Depuis le 23/11/2026.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Documentation
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- python
- Domaine
- documentation, testing-qa
Piste de recherche
Start with the docs_bzl test suite: the scenario directories with _expected/ golden samples, each scenario's BUILD and source documents, the central catalog that maps golden cases to Bazel targets, and the harness code that overwrites samples on mismatch. The reference_integration scenario is the representative composition to map. Done means a guide that explains when to use golden samples versus explicit assertions and when to extend the reference integration versus add a focused scenario, plus a clearer mapping of existing tests to the requirements they protect.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem statement
Overview
It is hard to tell what the docs_bzl tests cover or where to add a new test. Developers have to inspect several files and understand the test harness to work out what a test is meant to protect. We need clear test names and guidance on when to compare output with saved expected files (golden samples), when to write explicit assertions, and where new test cases belong.
Details
The docs_bzl tests cover important behavior, but it is difficult to determine which test protects which requirement and how to add new coverage.
The suite combines explicit Python assertions with golden samples stored in scenario _expected/ directories. Their relationship is unclear: which behavior is covered by the golden samples, which requires explicit assertions, and when should a new test use either approach?
Golden cases are discovered automatically from _expected/ and mapped to Bazel targets through a central catalog. Understanding what they actually protect requires inspecting the scenario’s BUILD, source documents, expected files, and harness code. The resulting test names identify a scenario and output rather than a behavioral expectation. When output differs, the test overwrites the golden samples and fails; reviewing that change requires understanding which differences matter to the scenario’s purpose.
Explicit tests introduce further difficulty:
- Some check several distinct behaviors under one name.
- Authors need to know internal Bazel targets, output paths, and helper conventions.
- Failure assertions vary; some only establish that a build failed, without checking the reason.
reference_integration intentionally approximates the S-CORE setup, including platform requirements, legacy and modern modules, and nested components. This representative composition is valuable and should remain covered; its purpose and the expectations attached to it need to be easier to understand.
Desired outcome
Developers should be able to identify existing coverage and add tests without reverse-engineering the harness. This includes clear guidance on using and reviewing _expected golden samples, writing explicit assertions, and choosing between extending the reference integration and adding a focused scenario.
- Langage dominant
- Python
- Étoiles
- 11
- Forks
- 39
- Merge moyen
- 1 j 13 h
- PR mergées (30 j)
- 65
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de eclipse-score/docs-as-code
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
eclipse-score/docs-as-code#1031 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
waiting_for_author
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
eclipse-score/docs-as-code#1029 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
intentionally-limited
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
eclipse-score/docs-as-code#1019 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
eclipse-score/docs-as-code#920 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Add project name to headline ...Peut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouvertedocumentation
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
eclipse-score/docs-as-code#613 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de eclipse-score/docs-as-code
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
hugohe3/ppt-master#366 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 89/100
Les mainteneurs répondent en général sous 2 jours
-
[开源推荐] 用 Claude 搭的 A 股投研与盘中作战系统Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
521xueweihan/HelloGitHub#4716 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
pcqpcq/open-source-android-apps#619 ·
Les mainteneurs répondent en général sous 1 jour
-
contribution Windows 主机
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Lee-xeo/Claude-Cage#1519 ·
Les mainteneurs répondent en général sous 1 jour