[[PrivatePortfile]] > lcov
* devel/lcov [#i9195823]
|Homepage|http://ltp.sourceforge.net/coverage/lcov.php|
|version|1.6|
gcc/gcovによるコードカバレージの測定結果を見やすく整形するツールです。
http://ltp.sourceforge.net/coverage/lcov/output/index.html のように、gcovの出力をHTML化することができます。
lcov, gendesc, genhtml, geninfo, genpngの5つのコマンドがインストールされます。
% port deps lcov
lcov has runtime dependencies on:
coreutils
** 使い方 [#tc26116a]
以下の手順でカバレージの測定と結果のHTMLレポートの作成ができます。
+gcovを有効にしたプログラム(ユニットテストなど)を実行
+lcovコマンドでgcovの測定結果を収集した.infoファイルを作成
+genhtmlコマンドで.infoファイルからHTMLファイル群を作成
参考
- [[“エンジニアのポケット: lcov”:http://rice-project.sblo.jp/article/951657.html]]
- [[lcovのREADME:http://ltp.sourceforge.net/coverage/lcov/readme.php]]
- [[Technical Q&A QA1514: Using GCOV from Xcode:http://developer.apple.com/qa/qa2007/qa1514.html]] (Xcodeでgcovを使う方法 by Apple)
** Portfile [#pd2842a1]
- &ref(lcov-1.6.tbz2); 2008-06-15
** Comment [#l8b6c3fc]
#comment_nospam