2016-11-14 97 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

謝謝你的回答。你知道我可以在windows上使用的覆蓋工具嗎?我有一組可執行文件來測試我的項目。 – user158304

+0

有一些商業的,但我不知道你正在處理什麼語言來幫助你進一步。 –