DotCover ExcludeFilters is not working while using with yml configuration file
I am using DotCover commandline tool along with yml configuration file for check code coverage. I have around 10 mstest project dll inside debug folder. I have provided wild card match for TargetArguments and path to all the test assemblies using TargetWorkingDir. It's able to find all the 10 test dlls and run the code coverage. But I want to eliminate one dll from those 10. So I provided that inside ExcludeFilters. But still dotcover is running code coverage for all 10 test projects. Can someone please suggest, how can I exclude this one project.
Configuration.yml:
<?xml version="1.0" encoding="utf-8"?>
<AnalyseParams>
<TargetExecutable>C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe</TargetExecutable>
<TargetArguments>*.Tests.dll</TargetArguments>
<TargetWorkingDir>D:\ProjectDir\bin\x64\Debug</TargetWorkingDir>
<Output>D:\ProjectDir\Reports\CoverageReport.xml</Output>
<ReportType>DetailedXml</ReportType>
<Filters>
<ExcludeFilters>
<FilterEntry>
<ModuleMask>Test9.Tests</ModuleMask>
</FilterEntry>
</ExcludeFilters>
</Filters>
</AnalyseParams>
Please sign in to leave a comment.
Just for the history. We have investigated this case in the scope of the #5471082 support request. Results: