Cobertura report shows wrong numbers
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- ruby
- 領域
- testing-qa
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Ruby
- スター
- 1.6k
- フォーク
- 239
- 平均マージ
- 10時間 19分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SlatherOrg/slather のほかの issue
-
2.8.6: NoMethodError "undefined method 'first'" in profdata_coverage_dir whenever --scheme is used対応中かも @MirekNalepa が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
SlatherOrg/slather#586 · コメント 4 件 · リアクション 4 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
SlatherOrg/slather#582 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
SlatherOrg/slather#580 · コメント 9 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 56/100
SlatherOrg/slather#578 · コメント 3 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
SlatherOrg/slather#577 ·
SlatherOrg/slather の issue をすべて見る
似ている issue
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
manyfold3d/manyfold#7346 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
🐞 bug pending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
CircuitVerse/CircuitVerse#8025 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
we-promise/sure#4199 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
riscv/riscv-unified-db#2738 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
scanaislop/aislop#482 ·
メンテナーはふだん 1 日以内に返信