[REQUEST] Add support for branch comparison when code coverage has changed between branches
@torresga がすでに取り組んでいます。
2025年10月27日 から。
評価
この issue はまだ評価されていません。
説明
Before we start...:
- I checked the documentation and didn't find this feature
- I checked to make sure that this feature has not already been requested
Branch/Commit:
main branch
Problem:
When using the -b option, the SkunkScore average doesn't change if you improve code coverage for your application/library.
Solution:
As a developer using
skunk -b stable-branch
I want to see the right SkunkScore delta
So that I can quickly see how much I've improved my project by paying off tech debt
It could work like this:
skunk -b main
Switched to branch 'main'
running flay smells
...
running flog smells
.......................
running reek smells
.......................
running complexity
.......................
running attributes
.......................
running churn
.......................
running simple_cov
.......................
Switched to branch 'poc/compare-issue'
running flay smells
...
running flog smells
.......................
running reek smells
.......................
running complexity
.......................
running attributes
.......................
running churn
.......................
running simple_cov
.......................
Base branch (main) average skunk score: 32.21
Feature branch (poc/compare-issue) average skunk score: 27.21
**Code coverage average improved by 7.27%**
**Skunk score average is 15% better**
Notes:
It might be necessary to run the entire test suite "all over again" for one of the branches, so that we can compare two different result sets from SimpleCov.
I imagine it could work like this:
- Save a copy of the files for the current branch's
coveragedirectory in a.skunklocal directory - Run all calculations for the current branch
- Switch to the "compared branch"
- Run the entire test suite using
COVERAGE=true - Save a copy of the files for the "compared branch" directory in a
.skunklocal directory - Compare all results
- Output delta information
- I will abide by the code of conduct
- 主要言語
- Ruby
- スター
- 547
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fastruby/skunk のほかの issue
-
enhancement
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
Feature Request
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
hanami/hanami-cli#449 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
resque/resque-scheduler#826 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100