Skip to content

Commit

Permalink
change code coverage report format to "cobertura"
Browse files Browse the repository at this point in the history
  • Loading branch information
westjeffho committed Jan 3, 2024
1 parent 1ab1c60 commit 9424d05
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 91 deletions.
59 changes: 31 additions & 28 deletions test/Secs4Net.Json.UnitTests/Secs4Net.Json.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net472</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net472</TargetFrameworks>
<IsPackable>false</IsPackable>
<EnableStaticNativeInstrumentation>False</EnableStaticNativeInstrumentation>
<EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation>
<Format>cobertura</Format>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeCoverage" Version="17.8.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeCoverage" Version="17.8.0" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\..\common\SecsMessageAssertions.cs" Link="common\SecsMessageAssertions.cs" />
<Compile Include="..\..\common\ItemAssertions.cs" Link="common\ItemAssertions.cs" />
<Compile Include="..\..\common\Usings.cs" Link="common\Usings.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\common\SecsMessageAssertions.cs" Link="common\SecsMessageAssertions.cs" />
<Compile Include="..\..\common\ItemAssertions.cs" Link="common\ItemAssertions.cs" />
<Compile Include="..\..\common\Usings.cs" Link="common\Usings.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Secs4Net.Json\Secs4Net.Json.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Secs4Net.Json\Secs4Net.Json.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="PolySharp" Version="1.14.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Update="PolySharp" Version="1.14.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
59 changes: 31 additions & 28 deletions test/Secs4Net.Sml.UnitTests/Secs4Net.Sml.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net472</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net472</TargetFrameworks>
<IsPackable>false</IsPackable>
<EnableStaticNativeInstrumentation>False</EnableStaticNativeInstrumentation>
<EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation>
<Format>cobertura</Format>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeCoverage" Version="17.8.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeCoverage" Version="17.8.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Secs4Net.Sml\Secs4Net.Sml.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Secs4Net.Sml\Secs4Net.Sml.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\..\common\SecsMessageAssertions.cs" Link="common\SecsMessageAssertions.cs" />
<Compile Include="..\..\common\ItemAssertions.cs" Link="common\ItemAssertions.cs" />
<Compile Include="..\..\common\Usings.cs" Link="common\Usings.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\common\SecsMessageAssertions.cs" Link="common\SecsMessageAssertions.cs" />
<Compile Include="..\..\common\ItemAssertions.cs" Link="common\ItemAssertions.cs" />
<Compile Include="..\..\common\Usings.cs" Link="common\Usings.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="PolySharp" Version="1.14.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Update="PolySharp" Version="1.14.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
71 changes: 36 additions & 35 deletions test/Secs4Net.UnitTests/Secs4Net.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net472</TargetFrameworks>
<IsPackable>false</IsPackable>
<EnableStaticNativeInstrumentation>False</EnableStaticNativeInstrumentation>
<EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net472</TargetFrameworks>
<IsPackable>false</IsPackable>
<EnableStaticNativeInstrumentation>False</EnableStaticNativeInstrumentation>
<EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation>
<Format>cobertura</Format>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeCoverage" Version="17.8.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeCoverage" Version="17.8.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Secs4Net\Secs4Net.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\..\common\SecsMessageAssertions.cs" Link="common\SecsMessageAssertions.cs" />
<Compile Include="..\..\common\ItemAssertions.cs" Link="common\ItemAssertions.cs" />
<Compile Include="..\..\common\Usings.cs" Link="common\Usings.cs" />
<Compile Include="..\..\common\RuntimeHelpers.cs" Link="common\RuntimeHelpers.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="PolySharp" Version="1.14.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Secs4Net\Secs4Net.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\..\common\SecsMessageAssertions.cs" Link="common\SecsMessageAssertions.cs" />
<Compile Include="..\..\common\ItemAssertions.cs" Link="common\ItemAssertions.cs" />
<Compile Include="..\..\common\Usings.cs" Link="common\Usings.cs" />
<Compile Include="..\..\common\RuntimeHelpers.cs" Link="common\RuntimeHelpers.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="PolySharp" Version="1.14.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>

0 comments on commit 9424d05

Please sign in to comment.