codecov / codecov/test-results-parser
[BUG] build_message outputs "All tests successful" if there is exactly one failure
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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