Make docs.bzl tests easier to understand and extend
Maintainer antworten meist innerhalb von 1 Tag
@MaximilianSoerenPollak arbeitet bereits daran.
Seit 23.11.2026.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- documentation, testing-qa
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 11
- Forks
- 39
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 65
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus eclipse-score/docs-as-code
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
eclipse-score/docs-as-code#1031 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
waiting_for_author
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
eclipse-score/docs-as-code#1029 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
intentionally-limited
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
eclipse-score/docs-as-code#1019 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
eclipse-score/docs-as-code#920 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add project name to headline ...Evtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
eclipse-score/docs-as-code#613 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in eclipse-score/docs-as-code
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
hugohe3/ppt-master#366 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 89/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
521xueweihan/HelloGitHub#4716 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
pcqpcq/open-source-android-apps#619 ·
Maintainer antworten meist innerhalb von 1 Tag
-
contribution Windows 主机
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Lee-xeo/Claude-Cage#1519 ·
Maintainer antworten meist innerhalb von 1 Tag