OpenCover 分析MSTEST C++/CLR路径覆盖率 并排除特定目录 实例
OpenCover.Console.exe -target:"path\to\vstest.console.exe" -targetargs:"/Tests:YourTestClassName /InIsolation" -register:user -filter:"+[*]* -[YourExcludePattern]*" -excludebyattribute:ExcludeFromCodeCoverage -excludebyfile:"path\to\ExcludedDirectories.txt" -output:"path\to\coverage.xml"
OpenCover 分析MSTEST C++/CLR路径覆盖率 并排除特定文件 实例
OpenCover.Console.exe -target:"path\to\vstest.console.exe" -targetargs:"/Tests:YourTestClassName /InIsolation" -register:user -filter:"+[*]* -[YourExcludePattern]*" -excludebyfile:"path\to\ExcludedFiles.txt" -output:"path\to\coverage.xml"