- Add InternalsVisibleTo for Heimdall.Api.Tests and Heimdall.IntegrationTests in Web.csproj - Add partial class Program for WebApplicationFactory<Program> - Pass builder.Environment.EnvironmentName instead of env var so AddInfrastructure correctly detects Testing environment - Skip DATABASE_URL check, Hangfire setup, migrations, and recurring jobs when environment is Testing - Update test project references from Heimdall.Api to Heimdall.Web
30 lines
1.1 KiB
XML
30 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<IsPackable>false</IsPackable>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="coverlet.collector" Version="6.0.4" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.10" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.10" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
|
|
<PackageReference Include="NSubstitute" Version="6.0.0" />
|
|
<PackageReference Include="Shouldly" Version="4.3.0" />
|
|
<PackageReference Include="xunit" Version="2.9.3" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Using Include="Xunit" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\Heimdall.Web\Heimdall.Web.csproj" />
|
|
<ProjectReference Include="..\..\src\Heimdall.Infrastructure\Heimdall.Infrastructure.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project> |