LoginSignup
0

More than 1 year has passed since last update.

[Xcode]Coverage.profdataの中身を見る

Last updated at Posted at 2022-10-24

はじめに

今回、Coverage.profdataの中身を見る方法について調べたので、備忘録として記事を書きます。
実際には、中身を見るというよりllvm-covコマンドを使って、ターミナルでパーセンテージを表示する方法です。

llvm-covを使ってカバレッジを表示

llvm-covのreportコマンドを使うことで、Coverage.profdataのカバレッジを見ることができます。
ターミナルで以下のコマンドを実行します。

$ xcrun llvm-cov report -instr-profile {Coverage.profdata} { 〇〇.app/〇〇 }

上記のコマンドを使うことで、カバレッジをターミナルに表示することができます。

実際のプロジェクトでコマンド実行

スクリーンショット 2022-10-24 21.47.01.png

参考記事

おわり

おわり

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0