Tests: xUnit project with HAR fixtures (50 tests); fix relative delivery/HLS URLs resolving to file:// on Linux
All checks were successful
release / build-release (push) Successful in 1m19s

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 09:42:50 +01:00
parent 9e33a343ab
commit 2a883c02de
21 changed files with 2358 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<RootNamespace>Jellyfin.Plugin.Floatplane.Tests</RootNamespace>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;CA1707</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<!-- The plugin excludes Jellyfin's runtime assets (the server provides them); the test host needs them copied. -->
<PackageReference Include="Jellyfin.Controller" Version="10.10.7" />
<PackageReference Include="Jellyfin.Model" Version="10.10.7" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="../Jellyfin.Plugin.Floatplane/Jellyfin.Plugin.Floatplane.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="Fixtures/**" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>