Make collected pytest reports discoverable by the testcase parser

Aperta
#1,035 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
11
Fork
39
Merge medio
1g 13h
PR unite (30g)
46

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-score/docs-as-code

Tutte le issue di eclipse-score/docs-as-code

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.