test(yavsc): categorize server suites as non-regression

Add Category=non-reg to all 75 test classes across the four server test projects, preserve existing traits, document filtered execution, and remove the empty Services class.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-12 17:29:36 +00:00
commit f8f2d943aa
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
78 changed files with 97 additions and 12 deletions

View file

@ -6,6 +6,8 @@
### Added ### Added
* [Yavsc/Tests] Apply the class-level `Category=non-reg` trait to all test classes in Yavsc.Org.Tests, Yavsc.Api.Tests, Yavsc.Blogs.Tests and Yavsc.Server.Tests, including inherited tests, while preserving existing traits. Remove the empty Services class.
* [PostIt/Tests] Add an xUnit collection fixture owning a headless UI session and its thread, with shared window creation, layout, closing and binding cleanup even after failures. Migrate the subscription page binding test as a pilot; retain per-dispatch application isolation and the parallelism guard during coexistence with legacy headless tests. * [PostIt/Tests] Add an xUnit collection fixture owning a headless UI session and its thread, with shared window creation, layout, closing and binding cleanup even after failures. Migrate the subscription page binding test as a pilot; retain per-dispatch application isolation and the parallelism guard during coexistence with legacy headless tests.
* [PostIt/Tests] Disable parallel execution of test collections sharing the Avalonia runtime and static platform state, preventing cross-thread headless initialization and test-case cleanup failures when UI and ordinary tests run together. * [PostIt/Tests] Disable parallel execution of test collections sharing the Avalonia runtime and static platform state, preventing cross-thread headless initialization and test-case cleanup failures when UI and ordinary tests run together.

View file

@ -31,6 +31,26 @@ bug : ils doivent être **rouges avant le fix, verts après**, et
continuer à **casser** si quelqu'un revert le fix. Pas de test continuer à **casser** si quelqu'un revert le fix. Pas de test
qui passe à vide. qui passe à vide.
## Selection des tests serveur
Toutes les classes de tests des projets `Yavsc.Org.Tests`, `Yavsc.Api.Tests`,
`Yavsc.Blogs.Tests` et `Yavsc.Server.Tests`, sous `src/test/`, portent
`[Trait("Category", "non-reg")]`, y compris celles qui heritent de tests.
Conserver ce trait sur toute nouvelle classe de tests ; les fixtures et
les helpers sans tests n'en ont pas besoin. Les autres traits restent inchanges.
Avec le runner Microsoft.Testing.Platform et le SDK .NET 10 :
```bash
dotnet test --project src/test/Yavsc.Org.Tests/Yavsc.Org.Tests.csproj \
--filter-trait 'Category=non-reg'
```
Remplacer le projet pour executer les trois autres suites. Le trait couvre
aussi les tests d'integration qui requierent leurs services/configurations ;
il ne supprime ni ces prerequis ni les exclusions d'autres traits.
Ajouter `--list-tests` pour verifier la selection sans executer les tests.
## Isolation des tests PostIt ## Isolation des tests PostIt
L'assemblee `src/PostIt/PostIt.Tests` execute ses collections xUnit sans L'assemblee `src/PostIt/PostIt.Tests` execute ses collections xUnit sans

View file

@ -16,6 +16,7 @@ using Yavsc.Settings;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class AccountCallPreferenceTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class AccountCallPreferenceTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -8,6 +8,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class ActivityApiControllerTests : IClassFixture<ApiWebServerFixture> public sealed class ActivityApiControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -13,6 +13,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class BillingControllerTests : IClassFixture<ApiWebServerFixture> public sealed class BillingControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -10,6 +10,7 @@ using Yavsc.Models.Billing;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class BillingSignatureNotificationTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class BillingSignatureNotificationTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -10,6 +10,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class DismissClicksApiControllerTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class DismissClicksApiControllerTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -12,6 +12,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class EstimateApiControllerTests : IClassFixture<ApiWebServerFixture> public sealed class EstimateApiControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -26,6 +26,7 @@ namespace Yavsc.Api.Test;
/// exercised in <c>Yavsc.Blogs.Tests</c>; these tests cover only the /// exercised in <c>Yavsc.Blogs.Tests</c>; these tests cover only the
/// metadata/relationship endpoints that live on the API host.</para> /// metadata/relationship endpoints that live on the API host.</para>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class EstimateAttachmentsApiTests : IClassFixture<ApiWebServerFixture> public sealed class EstimateAttachmentsApiTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -20,6 +20,7 @@ namespace Yavsc.Api.Test;
// The PDF test requires the system `lualatex` (and the TeX Live packages // The PDF test requires the system `lualatex` (and the TeX Live packages
// listed in the README runtime-deps section) on the host running the // listed in the README runtime-deps section) on the host running the
// tests. On hosts without lualatex it skips cleanly rather than failing. // tests. On hosts without lualatex it skips cleanly rather than failing.
[Trait("Category", "non-reg")]
public sealed class EstimatePdfGenerationTests public sealed class EstimatePdfGenerationTests
{ {
// A provider signature: a downstroke, a cross, and a tap (dot). // A provider signature: a downstroke, a cross, and a tap (dot).

View file

@ -14,6 +14,7 @@ using Yavsc.Services;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class FrontOfficeApiControllerTests : IClassFixture<ApiWebServerFixture> public sealed class FrontOfficeApiControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -26,6 +26,7 @@ namespace Yavsc.Api.Test;
/// belong to the caller, and listing is open to both parties /// belong to the caller, and listing is open to both parties
/// (client/provider) plus admin. A third party is refused.</para> /// (client/provider) plus admin. A third party is refused.</para>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class FrontOfficeQueryAttachmentsApiTests : IClassFixture<ApiWebServerFixture> public sealed class FrontOfficeQueryAttachmentsApiTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -15,6 +15,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class HairCutQueryApiControllerTests : IClassFixture<ApiWebServerFixture> public sealed class HairCutQueryApiControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -11,6 +11,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class HairMultiCutQueryApiControllerTests : IClassFixture<ApiWebServerFixture> public sealed class HairMultiCutQueryApiControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -14,6 +14,7 @@ using Yavsc.Models.Workflow;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class HomeControllerTests : IClassFixture<ApiWebServerFixture> public sealed class HomeControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -15,6 +15,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class InvoiceApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class InvoiceApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -9,6 +9,7 @@ using Yavsc.Services;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
public sealed class LiveProcessorTests : IDisposable public sealed class LiveProcessorTests : IDisposable
{ {
private readonly string _root = Path.Combine(Path.GetTempPath(), $"yavsc-podcast-unit-{Guid.NewGuid():N}"); private readonly string _root = Path.Combine(Path.GetTempPath(), $"yavsc-podcast-unit-{Guid.NewGuid():N}");

View file

@ -13,6 +13,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class PerformerDonationSettingsTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class PerformerDonationSettingsTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -9,6 +9,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class PodcastControllerTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class PodcastControllerTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -17,6 +17,7 @@ using Yavsc.Settings;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
public sealed class PodcastObsTests : IAsyncDisposable public sealed class PodcastObsTests : IAsyncDisposable
{ {
private static CancellationToken Ct => TestContext.Current.CancellationToken; private static CancellationToken Ct => TestContext.Current.CancellationToken;

View file

@ -9,6 +9,7 @@ using Yavsc.Services;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
public sealed class PodcastReplayTests : IDisposable public sealed class PodcastReplayTests : IDisposable
{ {
private readonly string _root = Path.Combine(Path.GetTempPath(), $"yavsc-replay-{Guid.NewGuid():N}"); private readonly string _root = Path.Combine(Path.GetTempPath(), $"yavsc-replay-{Guid.NewGuid():N}");

View file

@ -10,6 +10,7 @@ using Yavsc.Models;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class PodcastScheduleTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class PodcastScheduleTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -11,6 +11,7 @@ using Yavsc.Services;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class RdvQueryApiControllerTests : IClassFixture<ApiWebServerFixture> public sealed class RdvQueryApiControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -12,6 +12,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class ResourceUsageApiControllerTests : IClassFixture<ApiWebServerFixture> public sealed class ResourceUsageApiControllerTests : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -14,6 +14,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class ResourceUsageReliefApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class ResourceUsageReliefApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -16,6 +16,7 @@ using Yavsc.Tests.Shared;
namespace Yavsc.Api.Test; namespace Yavsc.Api.Test;
[Trait("Category", "non-reg")]
[Collection("Yavsc Api")] [Collection("Yavsc Api")]
public sealed class SiteAdministrationApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture> public sealed class SiteAdministrationApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
{ {

View file

@ -35,6 +35,7 @@ namespace Yavsc.Blogs.Tests;
/// (the existing <c>BlogPost</c> and <c>Circle</c>) are not /// (the existing <c>BlogPost</c> and <c>Circle</c>) are not
/// attached to the DbContext in the same change-tracker graph.</para> /// attached to the DbContext in the same change-tracker graph.</para>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Blogs")] [Collection("Yavsc Blogs")]
public sealed class BlogAclApiTests : IClassFixture<BlogsWebServerFixture> public sealed class BlogAclApiTests : IClassFixture<BlogsWebServerFixture>
{ {

View file

@ -12,6 +12,7 @@ using Yavsc.Blogs.Tests.Fixtures;
namespace Yavsc.Blogs.Tests; namespace Yavsc.Blogs.Tests;
[Trait("Category", "non-reg")]
[Collection("JwtClaimMapping")] [Collection("JwtClaimMapping")]
public sealed class BlogApiMappedClaimsTests : public sealed class BlogApiMappedClaimsTests :
IClassFixture<MappedClaimsBlogsWebServerFixture> IClassFixture<MappedClaimsBlogsWebServerFixture>

View file

@ -9,6 +9,7 @@ namespace Yavsc.Blogs.Tests;
/// surface. The first behavioural test (GET /api/v1/blog returns /// surface. The first behavioural test (GET /api/v1/blog returns
/// 200) lands in a follow-up commit. /// 200) lands in a follow-up commit.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Blogs")] [Collection("Yavsc Blogs")]
public sealed class BlogApiSmokeTests : IClassFixture<BlogsWebServerFixture> public sealed class BlogApiSmokeTests : IClassFixture<BlogsWebServerFixture>
{ {

View file

@ -26,6 +26,7 @@ namespace Yavsc.Blogs.Tests;
/// header (or sending a token signed with the wrong key) gets a /// header (or sending a token signed with the wrong key) gets a
/// 401 back from the framework. /// 401 back from the framework.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Blogs")] [Collection("Yavsc Blogs")]
public sealed class BlogApiTests : IClassFixture<BlogsWebServerFixture> public sealed class BlogApiTests : IClassFixture<BlogsWebServerFixture>
{ {

View file

@ -28,6 +28,7 @@ namespace Yavsc.Blogs.Tests;
/// <see cref="BlogsWebServerFixture"/>) is resolved from DI and run /// <see cref="BlogsWebServerFixture"/>) is resolved from DI and run
/// end-to-end — no mocking.</para> /// end-to-end — no mocking.</para>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Blogs")] [Collection("Yavsc Blogs")]
public sealed class BlogSpotServiceIndexTests : IClassFixture<BlogsWebServerFixture> public sealed class BlogSpotServiceIndexTests : IClassFixture<BlogsWebServerFixture>
{ {

View file

@ -30,6 +30,7 @@ namespace Yavsc.Blogs.Tests;
/// through the DbContext the same way the production code /// through the DbContext the same way the production code
/// would.</para> /// would.</para>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("JwtClaimMapping")] [Collection("JwtClaimMapping")]
public sealed class CircleMembersApiTests : IClassFixture<BlogsWebServerFixture> public sealed class CircleMembersApiTests : IClassFixture<BlogsWebServerFixture>
{ {

View file

@ -47,6 +47,7 @@ namespace Yavsc.Blogs.Tests;
/// <c>[Collection("Yavsc Blogs")]</c> + <c>IClassFixture</c> so the /// <c>[Collection("Yavsc Blogs")]</c> + <c>IClassFixture</c> so the
/// one shared host serves both legs without spinning a second one. /// one shared host serves both legs without spinning a second one.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Blogs")] [Collection("Yavsc Blogs")]
public sealed class CreateMultipartContentTests : IClassFixture<BlogsWebServerFixture> public sealed class CreateMultipartContentTests : IClassFixture<BlogsWebServerFixture>
{ {

View file

@ -35,6 +35,7 @@ namespace Yavsc.Blogs.Tests;
/// download endpoint lives here and not on the API host.</description></item> /// download endpoint lives here and not on the API host.</description></item>
/// </list> /// </list>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Blogs")] [Collection("Yavsc Blogs")]
public sealed class FileSystemApiTests : IClassFixture<BlogsWebServerFixture> public sealed class FileSystemApiTests : IClassFixture<BlogsWebServerFixture>
{ {

View file

@ -8,6 +8,7 @@ using Yavsc.Server.Helpers;
namespace Yavsc.Blogs.Tests; namespace Yavsc.Blogs.Tests;
[Trait("Category", "non-reg")]
public sealed class FilterFileNameTests public sealed class FilterFileNameTests
{ {
[Theory] [Theory]

View file

@ -29,6 +29,7 @@ namespace Yavsc.Blogs.Tests;
/// where it manifested in production (PostIt showing a published /// where it manifested in production (PostIt showing a published
/// post's status as <c>false</c>).</para> /// post's status as <c>false</c>).</para>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public sealed class IBlogPostWireShapeTests public sealed class IBlogPostWireShapeTests
{ {
private static readonly JsonSerializerOptions WebDefaults private static readonly JsonSerializerOptions WebDefaults

View file

@ -25,6 +25,7 @@ namespace Yavsc.Blogs.Tests;
/// in-memory <c>ApplicationDbContext</c>, JWT bearer auth /// in-memory <c>ApplicationDbContext</c>, JWT bearer auth
/// via <see cref="TestTokenIssuer"/>.</para> /// via <see cref="TestTokenIssuer"/>.</para>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Blogs")] [Collection("Yavsc Blogs")]
public sealed class PublishEndpointTests : IClassFixture<BlogsWebServerFixture> public sealed class PublishEndpointTests : IClassFixture<BlogsWebServerFixture>
{ {

View file

@ -21,6 +21,7 @@ namespace Yavsc.Org.Tests;
/// encoding of the thumbprint, which is independent of the key /// encoding of the thumbprint, which is independent of the key
/// type and the cert issuer. /// type and the cert issuer.
/// </remarks> /// </remarks>
[Trait("Category", "non-reg")]
public class ComputeKidTests : IDisposable public class ComputeKidTests : IDisposable
{ {
private readonly string _tempDir; private readonly string _tempDir;

View file

@ -21,6 +21,7 @@ namespace Yavsc.Org.Tests.Controllers;
/// production policy to honour that header, sidestepping the login flow /// production policy to honour that header, sidestepping the login flow
/// (which is itself not exercised by these tests). /// (which is itself not exercised by these tests).
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Server")] [Collection("Yavsc Server")]
public class ClientControllerCollectionTests : IClassFixture<TestWebApplicationFactory> public class ClientControllerCollectionTests : IClassFixture<TestWebApplicationFactory>
{ {

View file

@ -5,6 +5,7 @@ using Xunit;
namespace Yavsc.Org.Tests.Controllers; namespace Yavsc.Org.Tests.Controllers;
[Trait("Category", "non-reg")]
public class CommandFormsControllerTests : IClassFixture<TestWebApplicationFactory> public class CommandFormsControllerTests : IClassFixture<TestWebApplicationFactory>
{ {
private readonly TestWebApplicationFactory _factory; private readonly TestWebApplicationFactory _factory;

View file

@ -10,6 +10,7 @@ using Xunit;
namespace Yavsc.Org.Tests.Controllers; namespace Yavsc.Org.Tests.Controllers;
[Trait("Category", "non-reg")]
public class CommentsApiIntegrationTests : IClassFixture<TestWebApplicationFactory> public class CommentsApiIntegrationTests : IClassFixture<TestWebApplicationFactory>
{ {
private readonly TestWebApplicationFactory _factory; private readonly TestWebApplicationFactory _factory;

View file

@ -9,6 +9,7 @@ using Xunit;
namespace Yavsc.Org.Tests.Controllers; namespace Yavsc.Org.Tests.Controllers;
[Trait("Category", "non-reg")]
public class CommentsControllerTests public class CommentsControllerTests
{ {
[Fact] [Fact]

View file

@ -19,6 +19,7 @@ using Xunit;
namespace Yavsc.Org.Tests.Controllers; namespace Yavsc.Org.Tests.Controllers;
[Trait("Category", "non-reg")]
public sealed class PerformerDonationTests : IClassFixture<PerformerDonationTests.Factory> public sealed class PerformerDonationTests : IClassFixture<PerformerDonationTests.Factory>
{ {
private readonly Factory _factory; private readonly Factory _factory;

View file

@ -25,6 +25,7 @@ using Xunit;
namespace Yavsc.Org.Tests.Controllers; namespace Yavsc.Org.Tests.Controllers;
[Trait("Category", "non-reg")]
public sealed class PodcastWebTests : IClassFixture<PodcastWebTests.Factory> public sealed class PodcastWebTests : IClassFixture<PodcastWebTests.Factory>
{ {
private readonly Factory _factory; private readonly Factory _factory;

View file

@ -22,6 +22,7 @@ using Xunit;
namespace Yavsc.Org.Tests.Controllers; namespace Yavsc.Org.Tests.Controllers;
[Trait("Category", "non-reg")]
public sealed class ResourceSubscriptionControllerTests : IClassFixture<ResourceSubscriptionControllerTests.Factory> public sealed class ResourceSubscriptionControllerTests : IClassFixture<ResourceSubscriptionControllerTests.Factory>
{ {
private readonly Factory _factory; private readonly Factory _factory;

View file

@ -6,6 +6,7 @@ using Xunit;
namespace Yavsc.Org.Tests.Controllers; namespace Yavsc.Org.Tests.Controllers;
[Trait("Category", "non-reg")]
public sealed class ResourceUsageTermsTests public sealed class ResourceUsageTermsTests
{ {
[Fact] [Fact]

View file

@ -27,6 +27,7 @@ namespace Yavsc.Org.Tests.Controllers;
/// straight to the DbContext is the same code path the production /// straight to the DbContext is the same code path the production
/// code uses, so it is the right surface to assert against. /// code uses, so it is the right surface to assert against.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public class TestWebApplicationFactoryIsolationTests public class TestWebApplicationFactoryIsolationTests
{ {
[Fact] [Fact]

View file

@ -6,6 +6,7 @@ using Xunit;
namespace Yavsc.Org.Tests; namespace Yavsc.Org.Tests;
[Trait("Category", "non-reg")]
public class DictionnaireMetierTests public class DictionnaireMetierTests
{ {
[Fact] [Fact]

View file

@ -8,6 +8,7 @@ using Yavsc.Server.Models.IT;
namespace Yavsc.Org.Tests namespace Yavsc.Org.Tests
{ {
[Trait("Category", "non-reg")]
[Collection("Yavsc Server")] [Collection("Yavsc Server")]
[Trait("regression", "oui")] [Trait("regression", "oui")]
public abstract class BaseTestContext : IClassFixture<WebServerFixture>, IDisposable public abstract class BaseTestContext : IClassFixture<WebServerFixture>, IDisposable

View file

@ -8,6 +8,7 @@ using Yavsc.Server.Helpers;
namespace Yavsc.Org.Tests namespace Yavsc.Org.Tests
{ {
[Trait("Category", "non-reg")]
[Collection("Yavsc Server")] [Collection("Yavsc Server")]
[Trait("regression", "oui")] [Trait("regression", "oui")]
public class Remoting : BaseTestContext, IClassFixture<WebServerFixture> public class Remoting : BaseTestContext, IClassFixture<WebServerFixture>

View file

@ -1,12 +0,0 @@
namespace Yavsc.Org.Tests.Mandatory;
using Xunit;
[Collection("Yavsc Server")]
[Trait("regression", "oui")]
public class Services : BaseTestContext, IClassFixture<WebServerFixture>
{
public Services(ITestOutputHelper output, WebServerFixture fixture) : base(output, fixture)
{
}
}

View file

@ -4,6 +4,7 @@ using Xunit;
namespace Yavsc namespace Yavsc
{ {
[Trait("Category", "non-reg")]
[Collection("Yavsc Abstract tests")] [Collection("Yavsc Abstract tests")]
[Trait("regression", "II")] [Trait("regression", "II")]
public class AbstractTests public class AbstractTests

View file

@ -14,6 +14,7 @@ using Xunit;
/// statiquement que le cshtml ne porte plus l'accès fautif. Si /// statiquement que le cshtml ne porte plus l'accès fautif. Si
/// quelqu'un revert la ligne, ce test casse. /// quelqu'un revert la ligne, ce test casse.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public class ApplicationUserDisplayTemplateTests public class ApplicationUserDisplayTemplateTests
{ {
[Fact] [Fact]

View file

@ -6,6 +6,7 @@ using Xunit;
/// for missing files. The pipeline falls back to static defaults under /// for missing files. The pipeline falls back to static defaults under
/// /images/Users/icon_user*.png. /// /images/Users/icon_user*.png.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public class AvatarFallbackTests : IClassFixture<TestWebApplicationFactory> public class AvatarFallbackTests : IClassFixture<TestWebApplicationFactory>
{ {
private readonly TestWebApplicationFactory _factory; private readonly TestWebApplicationFactory _factory;

View file

@ -17,6 +17,7 @@ namespace Yavsc
// breaking the idempotency count assertion (a flaky failure that // breaking the idempotency count assertion (a flaky failure that
// surfaces whenever the fixture's timing shifts). Pinning the class // surfaces whenever the fixture's timing shifts). Pinning the class
// to the same collection serializes it with the host build. // to the same collection serializes it with the host build.
[Trait("Category", "non-reg")]
[Collection("Yavsc Server")] [Collection("Yavsc Server")]
[Trait("regression", "II")] [Trait("regression", "II")]
public class BillingServiceTests public class BillingServiceTests

View file

@ -2,6 +2,7 @@ namespace Yavsc.Org.Tests.Mandatory
{ {
using Xunit; using Xunit;
[Trait("Category", "non-reg")]
[Collection("Database")] [Collection("Database")]
[Trait("regression", "II")] [Trait("regression", "II")]
[Trait("dev", "wip")] [Trait("dev", "wip")]

View file

@ -20,6 +20,7 @@ namespace Yavsc.Org.Tests
{ {
[Trait("Category", "non-reg")]
[Collection("EMaillingTeststCollection")] [Collection("EMaillingTeststCollection")]
[Trait("regression", "II")] [Trait("regression", "II")]
public class EMaillingTests : IClassFixture<WebServerFixture> public class EMaillingTests : IClassFixture<WebServerFixture>

View file

@ -3,6 +3,7 @@ using Yavsc.Abstract.Files;
namespace Yavsc.Org.Tests.NonRegression; namespace Yavsc.Org.Tests.NonRegression;
using Xunit; using Xunit;
[Trait("Category", "non-reg")]
public class FileServerUrlHelpersTests public class FileServerUrlHelpersTests
{ {
[Fact] [Fact]

View file

@ -18,6 +18,7 @@ namespace Yavsc
/// must reference an ApiResource, and the seed's translation to /// must reference an ApiResource, and the seed's translation to
/// SQL must stay valid. /// SQL must stay valid.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Trait("regression", "OIDC seed")] [Trait("regression", "OIDC seed")]
public class OidcSeedTests public class OidcSeedTests
{ {

View file

@ -5,6 +5,7 @@ using Xunit;
namespace Yavsc.Tests.NonRegression; namespace Yavsc.Tests.NonRegression;
[Trait("Category", "non-reg")]
public class PerformerCodeInputValidationTests public class PerformerCodeInputValidationTests
{ {
[Fact] [Fact]

View file

@ -7,6 +7,7 @@ namespace Yavsc.Org.Tests.NonRegression;
/// - client-side SIREN validation is wired to country-specific regex rules /// - client-side SIREN validation is wired to country-specific regex rules
/// - controller exposes the validation catalog to the view /// - controller exposes the validation catalog to the view
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public class SetActivityCountryValidationViewTests public class SetActivityCountryValidationViewTests
{ {
[Fact] [Fact]

View file

@ -17,6 +17,7 @@ namespace Yavsc.Org.Tests.NonRegression;
/// donnée partielle. Ces tests couvrent les trois formes de /// donnée partielle. Ces tests couvrent les trois formes de
/// "donnée absente" : user null, UserName vide, UserName whitespace. /// "donnée absente" : user null, UserName vide, UserName whitespace.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public class UserDisplayHelpersTests public class UserDisplayHelpersTests
{ {
[Fact] [Fact]

View file

@ -8,6 +8,7 @@ using Xunit;
namespace Yavsc.Org.Tests.Services; namespace Yavsc.Org.Tests.Services;
[Trait("Category", "non-reg")]
public class FileSystemAuthManagerTests public class FileSystemAuthManagerTests
{ {
[Fact] [Fact]

View file

@ -23,6 +23,7 @@ namespace Yavsc.Org.Tests.Smoke;
/// entire pipeline (routing + Razor + IdentityServer + EF + DI) /// entire pipeline (routing + Razor + IdentityServer + EF + DI)
/// is wired correctly end-to-end. /// is wired correctly end-to-end.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public class AccountSmokeTests : IClassFixture<TestWebApplicationFactory> public class AccountSmokeTests : IClassFixture<TestWebApplicationFactory>
{ {
private readonly TestWebApplicationFactory _factory; private readonly TestWebApplicationFactory _factory;

View file

@ -16,6 +16,7 @@ namespace Yavsc.Org.Tests.Smoke;
/// <c>doc/architecture/decoupage-organisation.md</c>. The smoke /// <c>doc/architecture/decoupage-organisation.md</c>. The smoke
/// here asserts the front-end side of the BC. /// here asserts the front-end side of the BC.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public class BlogSmokeTests : BaseTestContext, IClassFixture<TestWebApplicationFactory> public class BlogSmokeTests : BaseTestContext, IClassFixture<TestWebApplicationFactory>
{ {
private readonly TestWebApplicationFactory _factory; private readonly TestWebApplicationFactory _factory;

View file

@ -24,6 +24,7 @@ using Xunit;
/// Once the WebServerFixture is stable in CI, this test can be /// Once the WebServerFixture is stable in CI, this test can be
/// deleted. /// deleted.
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
public class StaticAssetsPathsTests public class StaticAssetsPathsTests
{ {
private readonly ITestOutputHelper _output; private readonly ITestOutputHelper _output;

View file

@ -13,6 +13,7 @@ using Yavsc.Web.Services;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class AccountWithdrawalTests : IDisposable public sealed class AccountWithdrawalTests : IDisposable
{ {
private readonly string root = Path.Combine(Path.GetTempPath(), "yavsc-withdrawal-" + Guid.NewGuid().ToString("N")); private readonly string root = Path.Combine(Path.GetTempPath(), "yavsc-withdrawal-" + Guid.NewGuid().ToString("N"));

View file

@ -26,6 +26,7 @@ namespace Yavsc.Server.Tests;
/// before the one <see cref="BlogSpotService.Details"/> reads through, /// before the one <see cref="BlogSpotService.Details"/> reads through,
/// mirroring the per-request DbContext lifetime in production.</para> /// mirroring the per-request DbContext lifetime in production.</para>
/// </summary> /// </summary>
[Trait("Category", "non-reg")]
[Collection("Yavsc Server")] [Collection("Yavsc Server")]
public sealed class BlogSpotServiceDetailsTests : IClassFixture<ServerServicesFixture> public sealed class BlogSpotServiceDetailsTests : IClassFixture<ServerServicesFixture>
{ {

View file

@ -5,6 +5,7 @@ using Yavsc.Services;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class CallConnectionPresenceTests public sealed class CallConnectionPresenceTests
{ {
[Fact] [Fact]

View file

@ -17,6 +17,7 @@ using Yavsc.ViewModels.Chat;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class CallHubTests public sealed class CallHubTests
{ {
private sealed class Fixture : IDisposable private sealed class Fixture : IDisposable

View file

@ -7,6 +7,7 @@ using Yavsc.Settings;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class CallLanSignalingTests public sealed class CallLanSignalingTests
{ {
private static LanCallEndpoint Endpoint(string address = "192.168.1.2", int port = 5004) => private static LanCallEndpoint Endpoint(string address = "192.168.1.2", int port = 5004) =>

View file

@ -10,6 +10,7 @@ using Yavsc.Settings;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class CallSignalingTests public sealed class CallSignalingTests
{ {
private const string Sdp = "v=0\r\no=- 1 1 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\n"; private const string Sdp = "v=0\r\no=- 1 1 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\n";

View file

@ -2,6 +2,7 @@ using Yavsc.Server.Services;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public class FrontmatterParserTests public class FrontmatterParserTests
{ {
[Fact] [Fact]

View file

@ -8,6 +8,7 @@ using Yavsc.Web.Services;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class PayPalSubscriptionGatewayTests public sealed class PayPalSubscriptionGatewayTests
{ {
private static CancellationToken Ct => TestContext.Current.CancellationToken; private static CancellationToken Ct => TestContext.Current.CancellationToken;

View file

@ -5,6 +5,7 @@ using Yavsc.Services;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class PayPalTransactionVerifierTests public sealed class PayPalTransactionVerifierTests
{ {
private static CancellationToken Ct => TestContext.Current.CancellationToken; private static CancellationToken Ct => TestContext.Current.CancellationToken;

View file

@ -9,6 +9,7 @@ using Yavsc.Services;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public class PaymentSummaryTests public class PaymentSummaryTests
{ {
[Theory] [Theory]

View file

@ -11,6 +11,7 @@ using Yavsc.Web.Services;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class ResourceSubscriptionTests public sealed class ResourceSubscriptionTests
{ {
private static readonly DateTimeOffset Start = new(2026, 1, 31, 12, 0, 0, TimeSpan.Zero); private static readonly DateTimeOffset Start = new(2026, 1, 31, 12, 0, 0, TimeSpan.Zero);

View file

@ -12,6 +12,7 @@ using Yavsc.Abstract.Resources;
namespace Yavsc.Server.Tests; namespace Yavsc.Server.Tests;
[Trait("Category", "non-reg")]
public sealed class ResourceUsageTests public sealed class ResourceUsageTests
{ {
[Theory] [Theory]