Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Cobertura report shows wrong numbers

オープン
#520 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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.
Screen Shot 2022-08-10 at 11 39 44

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SlatherOrg/slather のほかの issue

SlatherOrg/slather の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。