我是新手使用Opencover,我想知道是否可以将它与CMake测试一起使用,因为我的项目已经在使用它。
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添加到bin \ Debug并注册但结果相同。
你对解决这个问题有什么想法吗?
感谢您的帮助!
答案 0 :(得分:0)
OpenCover仅适用于在Windows .net运行时上运行的.net项目。