<?xml version="1.0" encoding="utf-8" ?>
<RunSettings>
  <DataCollectionRunSettings>
    <DataCollectors>
      <DataCollector friendlyName="XPlat code coverage">
        <Configuration>
          <!-- Coverlet Configuration -->
          <Format>opencover</Format>

          <!-- Include/Exclude Assemblies -->
          <Include>[ColaFlow.*]*</Include>
          <Exclude>
            [*.Tests]*
            [*]*.Migrations.*
            [*]*.Designer
            [*]*.g.cs
            [*]*.Generated.*
          </Exclude>

          <!-- Exclude by File Path -->
          <ExcludeByFile>
            **/Migrations/**/*.cs
            **/*.g.cs
            **/*.Designer.cs
            **/*AssemblyInfo.cs
          </ExcludeByFile>

          <!-- Exclude by Attribute -->
          <ExcludeByAttribute>
            Obsolete
            GeneratedCodeAttribute
            CompilerGeneratedAttribute
            ExcludeFromCodeCoverage
            ExcludeFromCodeCoverageAttribute
          </ExcludeByAttribute>

          <!-- Thresholds -->
          <Threshold>80</Threshold>
          <ThresholdType>line,branch,method</ThresholdType>
          <ThresholdStat>total</ThresholdStat>

          <!-- Additional Settings -->
          <UseSourceLink>true</UseSourceLink>
          <SingleHit>false</SingleHit>
          <IncludeTestAssembly>false</IncludeTestAssembly>
        </Configuration>
      </DataCollector>
    </DataCollectors>
  </DataCollectionRunSettings>
</RunSettings>
