codecov / codecov/test-results-parser

[BUG] build_message outputs "All tests successful" if there is exactly one failure

Open
#93 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

If there is exactly one failure, the build_message function outputs:

✅ All tests successful. No failed tests were found.

Because in the templates/test_results_message.md there is a wrong if clause:

{% if num_failed > 1 %}

It should obviously be

{% if num_failed > 0 %}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open templates/test_results_message.md and inspect the num_failed condition used by build_message. Reproduce the exactly-one-failure case, update the condition as described in the issue, and verify that the resulting message reports the failure rather than saying all tests were successful.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.