2016-11-14 19 views
0

私はOpencoverを使っていて新しく、自分のプロジェクトが既にそれを使用しているので、CMakeテストでそれを使用できるかどうかを知りたいと思います。CTestでOpencoverを使用することは可能ですか?

mkdir build  
cd build 
cmake ..  
cmake --build . --config Debug 
..\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"C:\Program Files (x86)\CMake\bin\cmake.exe" -targetargs:"--build . --target RUN_TESTS --config Debug" 

と、対応するエラー:

Committing... 
No results, this could be for a number of reasons. The most common reasons are: 
    1) missing PDBs for the assemblies that match the filter please review the 
    output file and refer to the Usage guide (Usage.rtf) about filters. 
    2) the profiler may not be registered correctly, please refer to the Usage 
    guide and the -register switch. 

私はビン\デバッグにスイッチTARGETDIRおよび/またはsearchdirsを追加しても登録しようとしましたが、同じ結果に。

これを解決することについてご意見はありますか?

ありがとうございました!

答えて

0

OpenCoverは、Windows .NETランタイムで実行されている.netプロジェクトでのみ動作します。

+0

ありがとうございます。私は窓で使用できるカバレッジツールを知っていますか?プロジェクトをテストするための一連の実行ファイルがあります。 – user158304

+0

いくつかの商業的なものがありますが、私はさらにあなたを助けるためにどの言語を扱っているのか分かりません。 –

関連する問題