* Add coverage enforcement for test projects * Expand GitHub Actions triggers to include additional branch patterns * Update `coverlet.msbuild` configuration and centralize dependency version management - Removed inline version specification for `coverlet.msbuild` in `test/Directory.Build.props`. - Centralized `coverlet.msbuild` version definition in `Directory.Packages.props` for consistency and maintainability. * Remove `Elsa.Common.Core` unit test project and related test files * Add Directory.Build.props for test project organization and update property configurations - Introduced `Directory.Build.props` files for `test/unit` and `test/integration` to define project-specific properties. - Updated `test/Directory.Build.props` to include new coverage formats and an exclusion for `Elsa.Testing.Shared`. - Adjusted solution file to link new `Directory.Build.props` files. - Configured threshold properties for `unit`, `integration`, and `component` test directories. * Disable coverage collection for performance tests in project file * Expand GitHub Actions workflow triggers and add PR-specific condition for test job
39 lines
1.7 KiB
XML
39 lines
1.7 KiB
XML
<Project>
|
|
|
|
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/>
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<IsPackable>false</IsPackable>
|
|
<IsTestProject>true</IsTestProject>
|
|
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
|
<CollectCoverage Condition="'$(CollectCoverage)' == ''">true</CollectCoverage>
|
|
<CoverletOutputFormat Condition="'$(CoverletOutputFormat)' == ''">cobertura,lcov,opencover</CoverletOutputFormat>
|
|
<CoverletOutput Condition="'$(CoverletOutput)' == ''">$(MSBuildThisFileDirectory)../artifacts/coverage/$(MSBuildProjectName)/coverage</CoverletOutput>
|
|
<Threshold Condition="'$(Threshold)' == ''">10</Threshold>
|
|
<ThresholdType Condition="'$(ThresholdType)' == ''">line</ThresholdType>
|
|
<ThresholdStat Condition="'$(ThresholdStat)' == ''">total</ThresholdStat>
|
|
<Exclude>
|
|
[*Elsa.Testing.Shared*]*
|
|
</Exclude>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="GitHubActionsTestLogger"/>
|
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing"/>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
|
|
<PackageReference Include="Moq"/>
|
|
<PackageReference Include="NSubstitute"/>
|
|
<PackageReference Include="coverlet.msbuild"/>
|
|
<PackageReference Include="xunit"/>
|
|
<PackageReference Include="xunit.runner.visualstudio" PrivateAssets="all"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Using Include="Xunit"/>
|
|
</ItemGroup>
|
|
|
|
</Project>
|