macosxプラットフォームのカバレッジテストにgcovを使用しています。 (これは私が欲しいものである)そして、「Test.d, Test.dia, Test.gcno, Test.gcda, Test.o
」 はその後、私はTest.m.gcov
ファイルを生成するgcov-4.2 -b Test.gcno
コマンドを使用してファイルを生成2つのgcovファイルを1つにマージする方法はありますか?
1. Build Settings ==> Generate Test Coverage Files == Yes
2. Build Settings ==> Instrument Progaram Flow == Yes
3. Build Phases ==> Link Binary with library ==> add "libprofile_rt.dylib"
が、私はテストケースを実行し、次の時間:私はセットでのXcodeの設定を終えます再度、ファイル "Test.d, Test.dia, Test.gcno, Test.gcda, Test.o
"が生成され、データがリセットされます。
だから私は二つの質問があります。
- は、私は私のプロジェクトのように多くの時間を実行し、最後にファイルを生成することができるように、私はこれらのカバレッジファイル内のデータが蓄積させるするための方法はあります。 #1は絶望的である場合
、あなたはどのように一つに(2回を実行して生成された)ファイルを
merge two Test.gcno
に私を言うことができます。事前にすべてのあなたの助けをgcov-4.2 -help Usage: gcov [OPTION]... SOURCEFILE Print code coverage information. -h, --help Print this help, then exit -v, --version Print version number, then exit -a, --all-blocks Show information for every basic block -b, --branch-probabilities Include branch probabilities in output -c, --branch-counts Given counts of branches taken rather than percentages -n, --no-output Do not create an output file -l, --long-file-names Use long output file names for included source files -f, --function-summaries Output summaries for each function -o, --object-directory DIR|FILE Search for object files in DIR or called FILE -p, --preserve-paths Preserve all pathname components -u, --unconditional-branches Show unconditional branch counts too For bug reporting instructions, please see: <URL:http://developer.apple.com/bugreporter>.
おかげ