Skip to content

Commit

Permalink
test: exclude dummy test projects from code coverage calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mu88 committed Dec 20, 2024
1 parent 23d3b31 commit 563698b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SonarQube.Analysis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<SonarQubeAnalysisProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/integration/2015/1">
<Property Name="sonar.coverage.exclusions">**/tests/DummyAspNetCoreProject/**/*,**/tests/DummyAspNetCoreProjectViaNuGet/**/*</Property>
</SonarQubeAnalysisProperties>
4 changes: 4 additions & 0 deletions tests/DummyAspNetCoreProject/DummyAspNetCoreProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@
<ProjectReference Include="..\..\src\mu88.Shared\mu88.Shared.csproj"/>
</ItemGroup>

<PropertyGroup>
<ExcludeFromCodeCoverage>true</ExcludeFromCodeCoverage>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
<ContainerFamily>noble-chiseled</ContainerFamily>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup>
<ExcludeFromCodeCoverage>true</ExcludeFromCodeCoverage>
</PropertyGroup>
</Project>

0 comments on commit 563698b

Please sign in to comment.