【问题标题】:Is it possible too use Opencover with CTest?是否可以将 Opencover 与 CTest 一起使用?
【发布时间】:2016-11-14 11:22:30
【问题描述】:

我是使用 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 并注册但结果相同。

你有解决这个问题的想法吗?

感谢您的帮助!

【问题讨论】:

    标签: cmake opencover ctest


    【解决方案1】:

    OpenCover 仅适用于在 windows .net 运行时运行的 .net 项目。

    【讨论】:

    • 感谢您的回答。你知道我可以在 Windows 上使用的覆盖工具吗?我有一组可执行文件来测试我的项目。
    • 有一些商业的,但我不知道你在处理什么语言来进一步帮助你。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-12
    • 2016-04-01
    • 2011-01-20
    • 2018-08-11
    • 2021-08-05
    • 2019-03-18
    • 2014-03-15
    相关资源
    最近更新 更多