Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Test runner reports success when no solutions are executed

Fechada Para iniciantes
#53 1 comentário 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@vivek-3728 já está trabalhando nisso.

Desde 20/10/2026.

  • #60 de @vivek-3728 — integrado

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
76/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
testing

Direção de pesquisa

Comece em run.py, onde os filtros de problema e idioma selecionam as soluções e o status de saída final verifica falhas. Execute os dois comandos de exemplo da issue para reproduzir as execuções vazias que terminam com sucesso. Atualize o tratamento para que uma seleção vazia seja informada e o processo termine com um código diferente de zero; verifique se as soluções correspondentes continuam sendo executadas normalmente.

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

Descrição

bug good first issue

I noticed that the test runner reports a successful result even when the requested problem or language doesn't match any solutions.

For example, I tested:

python run.py does-not-exist
python run.py prime --lang rs

Both commands produced:

Summary: 0 passed, 0 failed, 0 skipped

The exit code was 0 in both cases. I repeated the tests twice and got the same results.

I expected the runner to report that no matching solutions were found and exit with a nonzero status, rather than treating an empty test run as successful.

Looking through run.py, the problem and language filters can exclude every available solution. However, the final exit status only checks whether any tests failed.

When nothing runs, the failure counter remains zero, so the runner reports success.

This could cause problems in automated verification. For example, a typo in a CI command or an incorrect language selection could skip every test while the pipeline still appears green.

A successful verification run should confirm that at least one matching solution was actually checked. If the selection is empty, the runner should report that explicitly instead of returning success.

Linguagem predominante
Python
Estrelas
1
Forks
6
Merge médio
22h 41min
PRs com merge (30d)
27

Preparar o ambiente

  • 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 techcsispit/code-corner

Todas as issues de techcsispit/code-corner

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.