The number tests shown in metrics.json seems wrong

Offen
#991 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
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
56/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
json, python
Bereich
tooling

Rechercherichtung

Find the code that generates metrics.json and trace how it counts tests. Start by checking whether the count reads test logs from prior runs as well as the current run. Update the count to reflect the intended test total, then verify that the reported value no longer includes stale logs.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Description

The metrics.json file includes the number of tests.
Example: https://eclipse-score.github.io/lifecycle/main/metrics.json

  "tests": {
    "total": 825,
    "linked_to_requirements": 21,
    "linked_to_requirements_pct": 2.5454545454545454,
    "broken_references": []
  },

However this number seems to be not the actual number of tests, but counts the test logs that are present on the machine - which includes many test logs from earlier runs.

Problem notifications

No response

Analysis results

No response

Solution

No response

Error Occurrence Rate

None

How to reproduce

No response

Supporting Information

No response

Classification

Minor

First Affected Release

not released (main)

Last Affected Release

not released (main)

Expected Fixed Release

before release (main)

Category
  • Safety Relevant
  • Security Relevant
Vorherrschende Sprache
Python
Sterne
11
Forks
39
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
65

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.