Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hlaueriksson committed Jul 11, 2024
1 parent 1688d05 commit 2cd3b55
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coverage.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dotnet test CommandQuery.sln --collect "Code Coverage" --settings coverage.runsettings
reportgenerator -reports:"tests\**\coverage.xml" -targetdir:"TestResults\Coverage" -reporttypes:Html -filefilters:"-*DotNetWorker*;-*NUnit*"
18 changes: 18 additions & 0 deletions coverage.runsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CoverageFileName>coverage.xml</CoverageFileName>
<Format>xml</Format>
<IncludeTestAssembly>False</IncludeTestAssembly>
<CodeCoverage>
<EnableStaticNativeInstrumentation>False</EnableStaticNativeInstrumentation>
<EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="3.0.0" />
<PackageReference Include="LoFuUnit.NUnit" Version="3.0.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="3.0.0" />
<PackageReference Include="LoFuUnit.NUnit" Version="3.0.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="3.0.0" />
<PackageReference Include="LoFuUnit.NUnit" Version="3.0.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<PackageReference Include="LoFuUnit.AutoMoq" Version="3.0.0" />
<PackageReference Include="LoFuUnit.NUnit" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.2.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
Expand Down
1 change: 1 addition & 0 deletions tests/CommandQuery.Tests/CommandQuery.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="3.0.0" />
<PackageReference Include="LoFuUnit.NUnit" Version="3.0.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 2cd3b55

Please sign in to comment.