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.



<?xml version="1.0" encoding="utf-8"?>
<TargetExecutable>C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe</TargetExecutable>



1 comment

Just for the history. We have investigated this case in the scope of the #5471082 support request. Results:

  • Found a DLL with a similar name that was not filtered
  • Better use asterisks for masks, like "*Test9.Tests*"

Please sign in to leave a comment.