[REQUEST] Add support for branch comparison when code coverage has changed between branches
@torresga ya está trabajando en esto.
Desde el 27/10/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- Ruby
- Estrellas
- 547
- Forks
- 33
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fastruby/skunk
-
enhancement
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
Feature Request
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
Todos los issues de fastruby/skunk
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
ai-generated
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
hanami/hanami-cli#449 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
hanami/hanami-router#310 ·