我想使用OpenCover为在网站上执行的自动化/手动测试生成覆盖率报告(例如此链接)。我尝试了以下方法;
Build the .net core 2 web app in the standalone mode and generate the exe.
Use following to generate the report:C:\OpenCover\OpenCover.Console.exe -target:”C:\myproj\bin\Debug\myproj.exe” -output:C:\myproj\CoverageReports\myproj.results.xml -register:user
This generates the report with empty results.
Hosting in IIS 10. However it seems that opencover does not support IIS 10 yet.
使用opencover能否获取手动或自动化测试代码的覆盖率?