Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add file coverage compare logic #427

Merged
merged 6 commits into from
Nov 2, 2024
Merged

Conversation

davelosert
Copy link
Owner

No description provided.

Copy link
Contributor

github-actions bot commented Oct 2, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 71.95%
⬆️ +1.45%
626 / 870
🔵 Statements 71.95%
⬆️ +1.45%
626 / 870
🔵 Functions 87.5%
⬆️ +0.41%
28 / 32
🔵 Branches 95.97%
⬆️ +0.17%
143 / 149
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/index.ts 0%
🟰 ±0%
0%
🟰 ±0%
0%
🟰 ±0%
0%
🟰 ±0%
1-6, 10-15, 17-18, 22-23, 25-26, 28, 30-35, 37-51, 53-58, 60-70, 72, 74-76, 78-80, 82-84, 86-87, 89-117, 119-143, 145-152, 154-158, 160-166
src/inputs/options.ts 0%
🟰 ±0%
0%
🟰 ±0%
0%
🟰 ±0%
0%
🟰 ±0%
1-2, 5-10, 25, 27, 29-30, 32-35, 37-40, 42-49, 51, 53, 56-59, 61-63, 65, 67-68, 70-71, 73-85
src/report/generateFileCoverageHtml.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/report/generateSummaryTableHtml.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/report/getCompareString.ts 100% 100% 100% 100%
Unchanged Files
src/icons.ts 100% 100% 100% 100%
src/octokit.ts 0% 0% 0% 0% 1-2, 6-9
src/writeSummaryToComment.ts 100% 100% 100% 100%
src/writeSummaryToPR.ts 100% 100% 100% 100%
src/inputs/FileCoverageMode.ts 100% 100% 100% 100%
src/inputs/getCommentOn.ts 100% 100% 100% 100%
src/inputs/getCommitSHA.ts 100% 100% 100% 100%
src/inputs/getPullChanges.ts 100% 92.85% 100% 100%
src/inputs/getPullRequestNumber.ts 100% 100% 100% 100%
src/inputs/getViteConfigPath.ts 97.95% 87.5% 100% 97.95% 47
src/inputs/parseCoverageThresholds.ts 100% 100% 100% 100%
src/inputs/parseJsonReports.ts 0% 0% 0% 0% 1-4, 8-14, 16-24, 28-29, 32-34, 36-44, 48-52
src/report/generateCommitSHAUrl.ts 100% 100% 100% 100%
src/report/generateFileUrl.ts 100% 100% 100% 100%
src/report/generateHeadline.ts 100% 100% 100% 100%
src/report/getUncoveredLinesFromStatements.ts 100% 100% 100% 100%
Generated in workflow #768 for commit d302bae by the Vitest Coverage Report Action

@davelosert davelosert requested a review from Copilot November 2, 2024 18:55
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 suggestions.

Files not reviewed (3)
  • src/inputs/options.ts: Evaluated as low risk
  • src/report/generateSummaryTableHtml.ts: Evaluated as low risk
  • src/index.ts: Evaluated as low risk

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

src/inputs/getPullChanges.test.ts Outdated Show resolved Hide resolved
src/inputs/getPullChanges.test.ts Outdated Show resolved Hide resolved
src/inputs/getPullChanges.test.ts Outdated Show resolved Hide resolved
davelosert and others added 2 commits November 2, 2024 20:02
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@davelosert davelosert merged commit 405f056 into main Nov 2, 2024
5 checks passed
@davelosert davelosert deleted the feat-add-file-compare branch November 2, 2024 19:11
daves-release-app bot pushed a commit that referenced this pull request Nov 2, 2024
# [2.7.0](v2.6.0...v2.7.0) (2024-11-02)

### Bug Fixes

* Uncovered lines column now correctly show ranges when they are interrupted (e.g. by empty rows) ([#439](#439)) ([52e2bb4](52e2bb4))

### Features

* Adds coverage compare indicator to File Coverage Table ([#427](#427)) ([405f056](405f056))
@daves-release-app
Copy link

🎉 This PR is included in version 2.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant