whitesmith / whitesmith/rubycritic

Coverage index page of "Build" shows 0 coverage if compare view

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

Nobody has claimed this yet.

Dominant language
Ruby
Stars
3.5k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

If compare view (--branch BRANCH or --mode-CI BRANCH is used), a coverage index page shows the names of changed files, with 0% coverage.

image If I switch to the `main` or `rubycritic-setup` branch from the above menu, their coverage index pages shows non-zero coverages.
"Build" compare/simple_cov_index.html target branch compare/main/simple_cov_index.html source branch compare/rubycritic-setup/simple_cov_index.html
image image image

I expect the "Build" coverage index page shows the coverages of the changed files.

Contributor guide

Open the contributing guide

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

Start by tracing the compare-view paths selected by --branch BRANCH and --mode-CI BRANCH, then inspect how compare/simple_cov_index.html is generated versus the target and source branch pages. Reproduce the zero-coverage Build output and verify that the changed files in the generated index show their actual coverage values.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.