The number tests shown in metrics.json seems wrong

Aberta
#991 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
56/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
json, python
Domínio
tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
Python
Estrelas
11
Forks
39
Merge médio
1d 13h
PRs com merge (30d)
65

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de eclipse-score/docs-as-code

Todas as issues de eclipse-score/docs-as-code

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.