Cobertura report shows wrong numbers
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- ruby
- Ambito
- testing-qa
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Ruby
- Stelle
- 1.6k
- Fork
- 239
- Merge medio
- 10h 19m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SlatherOrg/slather
-
2.8.6: NoMethodError "undefined method 'first'" in profdata_coverage_dir whenever --scheme is usedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
SlatherOrg/slather#586 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
SlatherOrg/slather#582 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
SlatherOrg/slather#580 · 9 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 56/100
SlatherOrg/slather#578 · 3 commenti · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
SlatherOrg/slather#577 ·
Tutte le issue di SlatherOrg/slather
Issue simili
-
bug: "Conversation information" accordion renders blank with 0px height when conversation has no attributesForse già presa @gihovani l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
`hanami generate repository` would be a nice alias for `hanami generate repo`Forse già presa @sandbergja l’ha presa oggi. Apertabug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
hanami/hanami-cli#455 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
asciidoctor/asciidoctor#4882 · 4 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
sclorg/s2i-ruby-container#660 · 1 commento ·