Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DotCover ExcludeFilters is not working while using with yml configuration file #2

Open
biswajitsamal59 opened this issue Aug 30, 2023 · 0 comments

Comments

@biswajitsamal59
Copy link

biswajitsamal59 commented Aug 30, 2023

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant