我是新的使用Opencover,我想知道是否可以使用它与CMake测试,因为我的项目已经在使用它。
mkdir build
cd build
cmake ..
cmake --build . --config Debug
..toolsOpenCover.4.6.519toolsOpenCover.Console.exe -target:"C:Program Files (x86)CMakebincmake.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添加到binDebug并注册,但结果相同。
你有解决这个问题的办法吗?
谢谢你的帮助!
OpenCover仅适用于在windows。net运行时上运行的。net项目。