Files
BinaryAlley b30cbd6b9e Adds bundled plugin trust and cross-platform native deployment
- embeds the append-only historical and deny trust lists in the API and marks matching bundled plugins as Official without blocking loading
- builds and records the current plugin manifest only for official release builds
- deploys the PDF native libraries for the supported Linux, macOS and Windows runtimes from the plugin dependency manifest
- records release hashes by appending only missing entries to master's manifest and rejects any diff that removes a line
- documents the release flow, the supported runtimes and the plugin installer limits
2026-11-28 18:00:00 +02:00

26 lines
1.1 KiB
C#

#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics.CodeAnalysis;
using Xunit;
#endregion
namespace Nemera.Presentation.Api.IntegrationTests.Common.Setup;
/// <summary>
/// Marks a test that only runs when the API assembly was produced by an official release build.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[ExcludeFromCodeCoverage]
public sealed class OfficialReleaseFactAttribute : FactAttribute
{
/// <summary>
/// Gets the reason to skip the test. If set, the test will be skipped instead of executed.
/// </summary>
/// <remarks>
/// xUnit evaluates Skip during test discovery, so the attribute decides at runtime whether the test runs. A normal test run skips official-only tests instead of failing them.
/// </remarks>
public override string Skip => OfficialReleaseBuildDetector.IsOfficialReleaseBuild()
? string.Empty
: "The API assembly was not produced by an official release build.";
}