Make collected pytest reports discoverable by the testcase parser

Offen
#1,035 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, python

Rechercherichtung

Read .github/workflows/_test.yml to trace how pytest JUnit reports are produced and merged, then inspect src/extensions/score_source_code_linker/xml_parser.py around XML discovery. Check whether reports contain the source, line, and verification properties, and whether parser output creates the expected testcase needs and links without duplicate IDs across Python versions.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

The test workflow collects pytest JUnit reports named docs_bzl_<python-version>_<suite>.xml and bundles them with Bazel reports. However, the testcase parser only discovers files named test.xml, so those pytest report files are not discovered by that parser.

See the report producers and merge job and XML discovery.

Suggested approach: keep the existing test.xml convention and place pytest reports in distinct directories, for example docs-bzl/3.12/cached/test.xml and docs-bzl/3.12/runtime/test.xml.

Please verify:

  • pytest JUnit output includes the source file, line and verification properties needed for testcase/requirement links;
  • reports are actually discovered and the expected testcase needs and links are generated;
  • repeated runs of the same testcase across Python versions do not create duplicate need IDs. Select a representative version or define deduplication explicitly.

Changing filenames alone does not guarantee correct traceability; verify the parser output as well.

Vorherrschende Sprache
Python
Sterne
11
Forks
39
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
46

Entwicklungsumgebung

In Codespaces öffnen

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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus eclipse-score/docs-as-code

Alle Issues in eclipse-score/docs-as-code

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.