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:
parent
adb4a8bc42
commit
f8f2d943aa
78 changed files with 97 additions and 12 deletions
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
### 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] 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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
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
|
||||
|
||||
L'assemblee `src/PostIt/PostIt.Tests` execute ses collections xUnit sans
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ using Yavsc.Settings;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class AccountCallPreferenceTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class ActivityApiControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class BillingControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ using Yavsc.Models.Billing;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class BillingSignatureNotificationTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class DismissClicksApiControllerTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class EstimateApiControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ namespace Yavsc.Api.Test;
|
|||
/// exercised in <c>Yavsc.Blogs.Tests</c>; these tests cover only the
|
||||
/// metadata/relationship endpoints that live on the API host.</para>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class EstimateAttachmentsApiTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ namespace Yavsc.Api.Test;
|
|||
// The PDF test requires the system `lualatex` (and the TeX Live packages
|
||||
// listed in the README runtime-deps section) on the host running the
|
||||
// tests. On hosts without lualatex it skips cleanly rather than failing.
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class EstimatePdfGenerationTests
|
||||
{
|
||||
// A provider signature: a downstroke, a cross, and a tap (dot).
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ using Yavsc.Services;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class FrontOfficeApiControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ namespace Yavsc.Api.Test;
|
|||
/// belong to the caller, and listing is open to both parties
|
||||
/// (client/provider) plus admin. A third party is refused.</para>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class FrontOfficeQueryAttachmentsApiTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class HairCutQueryApiControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class HairMultiCutQueryApiControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ using Yavsc.Models.Workflow;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class HomeControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class InvoiceApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ using Yavsc.Services;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class LiveProcessorTests : IDisposable
|
||||
{
|
||||
private readonly string _root = Path.Combine(Path.GetTempPath(), $"yavsc-podcast-unit-{Guid.NewGuid():N}");
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class PerformerDonationSettingsTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class PodcastControllerTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ using Yavsc.Settings;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class PodcastObsTests : IAsyncDisposable
|
||||
{
|
||||
private static CancellationToken Ct => TestContext.Current.CancellationToken;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ using Yavsc.Services;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class PodcastReplayTests : IDisposable
|
||||
{
|
||||
private readonly string _root = Path.Combine(Path.GetTempPath(), $"yavsc-replay-{Guid.NewGuid():N}");
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ using Yavsc.Models;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class PodcastScheduleTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ using Yavsc.Services;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class RdvQueryApiControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class ResourceUsageApiControllerTests : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class ResourceUsageReliefApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ using Yavsc.Tests.Shared;
|
|||
|
||||
namespace Yavsc.Api.Test;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Api")]
|
||||
public sealed class SiteAdministrationApiTests(ApiWebServerFixture fixture) : IClassFixture<ApiWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// (the existing <c>BlogPost</c> and <c>Circle</c>) are not
|
||||
/// attached to the DbContext in the same change-tracker graph.</para>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Blogs")]
|
||||
public sealed class BlogAclApiTests : IClassFixture<BlogsWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ using Yavsc.Blogs.Tests.Fixtures;
|
|||
|
||||
namespace Yavsc.Blogs.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("JwtClaimMapping")]
|
||||
public sealed class BlogApiMappedClaimsTests :
|
||||
IClassFixture<MappedClaimsBlogsWebServerFixture>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// surface. The first behavioural test (GET /api/v1/blog returns
|
||||
/// 200) lands in a follow-up commit.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Blogs")]
|
||||
public sealed class BlogApiSmokeTests : IClassFixture<BlogsWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// header (or sending a token signed with the wrong key) gets a
|
||||
/// 401 back from the framework.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Blogs")]
|
||||
public sealed class BlogApiTests : IClassFixture<BlogsWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// <see cref="BlogsWebServerFixture"/>) is resolved from DI and run
|
||||
/// end-to-end — no mocking.</para>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Blogs")]
|
||||
public sealed class BlogSpotServiceIndexTests : IClassFixture<BlogsWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// through the DbContext the same way the production code
|
||||
/// would.</para>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("JwtClaimMapping")]
|
||||
public sealed class CircleMembersApiTests : IClassFixture<BlogsWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// <c>[Collection("Yavsc Blogs")]</c> + <c>IClassFixture</c> so the
|
||||
/// one shared host serves both legs without spinning a second one.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Blogs")]
|
||||
public sealed class CreateMultipartContentTests : IClassFixture<BlogsWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// download endpoint lives here and not on the API host.</description></item>
|
||||
/// </list>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Blogs")]
|
||||
public sealed class FileSystemApiTests : IClassFixture<BlogsWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using Yavsc.Server.Helpers;
|
|||
|
||||
namespace Yavsc.Blogs.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class FilterFileNameTests
|
||||
{
|
||||
[Theory]
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// where it manifested in production (PostIt showing a published
|
||||
/// post's status as <c>false</c>).</para>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class IBlogPostWireShapeTests
|
||||
{
|
||||
private static readonly JsonSerializerOptions WebDefaults
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ namespace Yavsc.Blogs.Tests;
|
|||
/// in-memory <c>ApplicationDbContext</c>, JWT bearer auth
|
||||
/// via <see cref="TestTokenIssuer"/>.</para>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Blogs")]
|
||||
public sealed class PublishEndpointTests : IClassFixture<BlogsWebServerFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ namespace Yavsc.Org.Tests;
|
|||
/// encoding of the thumbprint, which is independent of the key
|
||||
/// type and the cert issuer.
|
||||
/// </remarks>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class ComputeKidTests : IDisposable
|
||||
{
|
||||
private readonly string _tempDir;
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ namespace Yavsc.Org.Tests.Controllers;
|
|||
/// production policy to honour that header, sidestepping the login flow
|
||||
/// (which is itself not exercised by these tests).
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Server")]
|
||||
public class ClientControllerCollectionTests : IClassFixture<TestWebApplicationFactory>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests.Controllers;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class CommandFormsControllerTests : IClassFixture<TestWebApplicationFactory>
|
||||
{
|
||||
private readonly TestWebApplicationFactory _factory;
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests.Controllers;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class CommentsApiIntegrationTests : IClassFixture<TestWebApplicationFactory>
|
||||
{
|
||||
private readonly TestWebApplicationFactory _factory;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests.Controllers;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class CommentsControllerTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests.Controllers;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class PerformerDonationTests : IClassFixture<PerformerDonationTests.Factory>
|
||||
{
|
||||
private readonly Factory _factory;
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests.Controllers;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class PodcastWebTests : IClassFixture<PodcastWebTests.Factory>
|
||||
{
|
||||
private readonly Factory _factory;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests.Controllers;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class ResourceSubscriptionControllerTests : IClassFixture<ResourceSubscriptionControllerTests.Factory>
|
||||
{
|
||||
private readonly Factory _factory;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests.Controllers;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class ResourceUsageTermsTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ namespace Yavsc.Org.Tests.Controllers;
|
|||
/// straight to the DbContext is the same code path the production
|
||||
/// code uses, so it is the right surface to assert against.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class TestWebApplicationFactoryIsolationTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class DictionnaireMetierTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using Yavsc.Server.Models.IT;
|
|||
|
||||
namespace Yavsc.Org.Tests
|
||||
{
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Server")]
|
||||
[Trait("regression", "oui")]
|
||||
public abstract class BaseTestContext : IClassFixture<WebServerFixture>, IDisposable
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using Yavsc.Server.Helpers;
|
|||
|
||||
namespace Yavsc.Org.Tests
|
||||
{
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Server")]
|
||||
[Trait("regression", "oui")]
|
||||
public class Remoting : BaseTestContext, IClassFixture<WebServerFixture>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc
|
||||
{
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Abstract tests")]
|
||||
[Trait("regression", "II")]
|
||||
public class AbstractTests
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ using Xunit;
|
|||
/// statiquement que le cshtml ne porte plus l'accès fautif. Si
|
||||
/// quelqu'un revert la ligne, ce test casse.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class ApplicationUserDisplayTemplateTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ using Xunit;
|
|||
/// for missing files. The pipeline falls back to static defaults under
|
||||
/// /images/Users/icon_user*.png.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class AvatarFallbackTests : IClassFixture<TestWebApplicationFactory>
|
||||
{
|
||||
private readonly TestWebApplicationFactory _factory;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ namespace Yavsc
|
|||
// breaking the idempotency count assertion (a flaky failure that
|
||||
// surfaces whenever the fixture's timing shifts). Pinning the class
|
||||
// to the same collection serializes it with the host build.
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Server")]
|
||||
[Trait("regression", "II")]
|
||||
public class BillingServiceTests
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ namespace Yavsc.Org.Tests.Mandatory
|
|||
{
|
||||
using Xunit;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Database")]
|
||||
[Trait("regression", "II")]
|
||||
[Trait("dev", "wip")]
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ namespace Yavsc.Org.Tests
|
|||
{
|
||||
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("EMaillingTeststCollection")]
|
||||
[Trait("regression", "II")]
|
||||
public class EMaillingTests : IClassFixture<WebServerFixture>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using Yavsc.Abstract.Files;
|
|||
namespace Yavsc.Org.Tests.NonRegression;
|
||||
using Xunit;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class FileServerUrlHelpersTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ namespace Yavsc
|
|||
/// must reference an ApiResource, and the seed's translation to
|
||||
/// SQL must stay valid.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Trait("regression", "OIDC seed")]
|
||||
public class OidcSeedTests
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Tests.NonRegression;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class PerformerCodeInputValidationTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ namespace Yavsc.Org.Tests.NonRegression;
|
|||
/// - client-side SIREN validation is wired to country-specific regex rules
|
||||
/// - controller exposes the validation catalog to the view
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class SetActivityCountryValidationViewTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ namespace Yavsc.Org.Tests.NonRegression;
|
|||
/// donnée partielle. Ces tests couvrent les trois formes de
|
||||
/// "donnée absente" : user null, UserName vide, UserName whitespace.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class UserDisplayHelpersTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using Xunit;
|
|||
|
||||
namespace Yavsc.Org.Tests.Services;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class FileSystemAuthManagerTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ namespace Yavsc.Org.Tests.Smoke;
|
|||
/// entire pipeline (routing + Razor + IdentityServer + EF + DI)
|
||||
/// is wired correctly end-to-end.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class AccountSmokeTests : IClassFixture<TestWebApplicationFactory>
|
||||
{
|
||||
private readonly TestWebApplicationFactory _factory;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ namespace Yavsc.Org.Tests.Smoke;
|
|||
/// <c>doc/architecture/decoupage-organisation.md</c>. The smoke
|
||||
/// here asserts the front-end side of the BC.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class BlogSmokeTests : BaseTestContext, IClassFixture<TestWebApplicationFactory>
|
||||
{
|
||||
private readonly TestWebApplicationFactory _factory;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ using Xunit;
|
|||
/// Once the WebServerFixture is stable in CI, this test can be
|
||||
/// deleted.
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
public class StaticAssetsPathsTests
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ using Yavsc.Web.Services;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class AccountWithdrawalTests : IDisposable
|
||||
{
|
||||
private readonly string root = Path.Combine(Path.GetTempPath(), "yavsc-withdrawal-" + Guid.NewGuid().ToString("N"));
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ namespace Yavsc.Server.Tests;
|
|||
/// before the one <see cref="BlogSpotService.Details"/> reads through,
|
||||
/// mirroring the per-request DbContext lifetime in production.</para>
|
||||
/// </summary>
|
||||
[Trait("Category", "non-reg")]
|
||||
[Collection("Yavsc Server")]
|
||||
public sealed class BlogSpotServiceDetailsTests : IClassFixture<ServerServicesFixture>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using Yavsc.Services;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class CallConnectionPresenceTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ using Yavsc.ViewModels.Chat;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class CallHubTests
|
||||
{
|
||||
private sealed class Fixture : IDisposable
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ using Yavsc.Settings;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class CallLanSignalingTests
|
||||
{
|
||||
private static LanCallEndpoint Endpoint(string address = "192.168.1.2", int port = 5004) =>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ using Yavsc.Settings;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
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";
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ using Yavsc.Server.Services;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class FrontmatterParserTests
|
||||
{
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using Yavsc.Web.Services;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class PayPalSubscriptionGatewayTests
|
||||
{
|
||||
private static CancellationToken Ct => TestContext.Current.CancellationToken;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using Yavsc.Services;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class PayPalTransactionVerifierTests
|
||||
{
|
||||
private static CancellationToken Ct => TestContext.Current.CancellationToken;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ using Yavsc.Services;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public class PaymentSummaryTests
|
||||
{
|
||||
[Theory]
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ using Yavsc.Web.Services;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class ResourceSubscriptionTests
|
||||
{
|
||||
private static readonly DateTimeOffset Start = new(2026, 1, 31, 12, 0, 0, TimeSpan.Zero);
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ using Yavsc.Abstract.Resources;
|
|||
|
||||
namespace Yavsc.Server.Tests;
|
||||
|
||||
[Trait("Category", "non-reg")]
|
||||
public sealed class ResourceUsageTests
|
||||
{
|
||||
[Theory]
|
||||
|
|
|
|||
Loading…
Reference in a new issue