Previously, the golden-mappings.json file in the TestData directory was not being copied to the output directory, causing golden tests to skip silently when the file couldn't be found at runtime. Added ItemGroup configuration to Umbraco.Tests.UnitTests.csproj to copy all JSON files from Umbraco.Core\Strings\TestData\ to the output directory using PreserveNewest, ensuring the golden test data is available for test execution. Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
61 lines
2.3 KiB
XML
61 lines
2.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<IsTestProject>true</IsTestProject>
|
|
<RootNamespace>Umbraco.Cms.Tests.UnitTests</RootNamespace>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!--
|
|
TODO: Fix and remove overrides:
|
|
[SYSLIB0013] and [CS0618] obsolete
|
|
[CS1998] async
|
|
[SA1117] params same line
|
|
[CS0067] unused event
|
|
[CA1822] mark members as static
|
|
[CA1416] validate platform compatibility
|
|
[IDE0028] collection initializers
|
|
[SA1401] fields must be private
|
|
[SA1405] debug message text
|
|
[IDE0060] remove parameter
|
|
[ASP0019] header append
|
|
[CS0114] inherited member
|
|
[CS0661]/[CS0659] adjust overrides
|
|
[CS0414] unassigned field
|
|
[CS0252] confirm reference comparison
|
|
[CS0612] obsolete
|
|
[IDE1006] fix naming rule violation
|
|
-->
|
|
<WarningsNotAsErrors>$(WarningsNotAsErrors),SYSLIB0013,CS0618,CS1998,SA1117,CS0067,CA1822,CA1416,IDE0028,SA1401,SA1405,IDE0060,ASP0019,CS0114,CS0661,CS0659,CS0414,CS0252,CS0612,IDE1006</WarningsNotAsErrors>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
|
<PackageReference Include="NUnit3TestAdapter" />
|
|
<PackageReference Include="System.Data.Odbc" />
|
|
<PackageReference Include="System.Data.OleDb" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\Umbraco.Cms.DevelopmentMode.Backoffice\Umbraco.Cms.DevelopmentMode.Backoffice.csproj" />
|
|
<ProjectReference Include="..\Umbraco.Tests.Common\Umbraco.Tests.Common.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Update="Umbraco.Cms.Api.Management\Services\BackOfficeExternalLoginServiceTests.ExternalLoginStatusForUserAsync.cs">
|
|
<DependentUpon>BackOfficeExternalLoginServiceTests.cs</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Umbraco.Cms.Api.Management\Services\BackOfficeExternalLoginServiceTests.UnLinkLoginAsync.cs">
|
|
<DependentUpon>BackOfficeExternalLoginServiceTests.cs</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Umbraco.Core\Extensions\ContentExtensionsTests.GetStatus.cs">
|
|
<DependentUpon>ContentExtensionsTests.cs</DependentUpon>
|
|
</Compile>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="Umbraco.Core\Strings\TestData\*.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
</Project>
|