Cobertura report shows wrong numbers
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- ruby
- Área
- testing-qa
Línea de trabajo
Start by tracing the slather coverage -x command for Xcode projects and how it reads coverage data from the attached .xcresult bundle. Compare the line totals it uses with the 95 covered lines reported by xcrun xccov and the 88 lines in the Cobertura XML. Done means the generated report accounts for the discrepancy; the issue does not name a source file or test to start from.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I have exported the code coverage report with
coverage = JSON.parse `xcrun xccov view --report --json #{test_path}`
It gave a report with something like the below
"coverage": {
"coveredLines": 95,
"lineCoverage": 1,
"targets": [
{
It shows that 95 lines are covered which is the actual value since I see the same number on Xcode.

Then I run the slather
slather coverage -x --scheme FizzBuzzKit Appcircle.xcodeproj
XML report says this
<?xml version="1.0"?>
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
<coverage line-rate="1.0000000000000000" branch-rate="1.0000000000000000" lines-covered="88" lines-valid="88" branches-covered="98" branches-valid="98" complexity="0.0" timestamp="1660117022" version="Slather 2.7.2">
Instead of 95, it is reporting as 88 lines.
I attached the Xcode test result as well.
FizzBuzzKit.xcresult.zip
- Lenguaje dominante
- Ruby
- Estrellas
- 1.6k
- Forks
- 239
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 2
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 SlatherOrg/slather
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
SlatherOrg/slather#582 · 1 comentario ·
-
is xcode 26 already supported?Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
SlatherOrg/slather#580 · 9 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 56/100
SlatherOrg/slather#578 · 3 comentarios · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
SlatherOrg/slather#577 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
SlatherOrg/slather#576 · 2 comentarios ·
Todos los issues de SlatherOrg/slather
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
hackclub/hcb#15454 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
voxpupuli/puppet-archive#566 ·
-
area/tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 2 días
-
verified
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 5 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
akitaonrails/ai-book-2026#10 ·