Frontend gaps fill work. Testing fixes work. Auditing in progress.
This commit is contained in:
@@ -133,21 +133,12 @@
|
||||
TEST PROJECT CONFIGURATION
|
||||
============================================================================ -->
|
||||
|
||||
<!-- All test projects get xunit v2 packages (unless using xunit v3) -->
|
||||
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' != 'true'">
|
||||
<PackageReference Include="xunit" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<Using Include="Xunit" />
|
||||
<Using Include="Xunit.Abstractions" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Suppress xUnit v3 analyzer warnings for xUnit v2 test projects -->
|
||||
<PropertyGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' != 'true'">
|
||||
<NoWarn>$(NoWarn);xUnit1051</NoWarn>
|
||||
<PropertyGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' == ''">
|
||||
<UseXunitV3>true</UseXunitV3>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Concelier shared test infrastructure (only when paths exist and not opted out) -->
|
||||
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' != 'true' and '$(UseConcelierTestInfra)' != 'false'">
|
||||
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseConcelierTestInfra)' != 'false'">
|
||||
<Compile Include="$(ConcelierSharedTestsPath)AssemblyInfo.cs" Link="Shared\AssemblyInfo.cs" Condition="'$(ConcelierSharedTestsPath)' != ''" />
|
||||
<Compile Include="$(ConcelierSharedTestsPath)ConcelierFixtureCollection.cs" Link="Shared\ConcelierFixtureCollection.cs" Condition="'$(ConcelierSharedTestsPath)' != ''" />
|
||||
<ProjectReference Include="$(ConcelierTestingPath)StellaOps.Concelier.Testing.csproj" Condition="'$(ConcelierTestingPath)' != ''" />
|
||||
@@ -155,8 +146,13 @@
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Test projects using xUnit v3 -->
|
||||
<PropertyGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' == 'true'">
|
||||
<OutputType Condition="'$(OutputType)' == ''">Exe</OutputType>
|
||||
<UseAppHost>true</UseAppHost>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' == 'true'">
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
|
||||
Reference in New Issue
Block a user