test: consolidate test infrastructure and remove low-value tests #137
Labels
No labels
breaking-change
bug
documentation
duplicate
enhancement
good first issue
help wanted
performance
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Grandiras/ATProto.NET#137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the v0.7.0 update cycle (wave 8). Test infrastructure consolidation and low-value test removal. Do this after the feature work so it doesn't conflict with every PR.
HttpMessageHandlerstub and anXrpcTestClientfixture replace the 27 hand-rolled handlers.XrpcTestHostreplaces the 4 TestServer hosts.Microsoft.EntityFrameworkCore.InMemory, which also removes the version-pin trap.[RequiresFact(...)]for the env-gated integration tests (RequiresPdsFact/RequiresBlueskyFactcurrently ignoreATPROTO_REQUIRE_INTEGRATION).SecurityTestsopens real TCP connections andAtProtoClientApplyOAuthTestsdoes real DNS.AuthenticatedClientFixtureprovisions its own account (likeSpaceNetworkFixture), and the CI filter widens beyondPdsAdminTests, so login/refresh/record CRUD run against the reference PDS on every PR.LoginAsync/ResumeSessionAsync/LogoutAsync,RecordCollectionCRUD, and the custom-XRPC entry points.Splitting this into two PRs, so most of it can run in parallel with the second half of #136:
issue-137-tests: the shared scriptedHttpMessageHandlerstub andXrpcTestClient, oneXrpcTestHost, the enum-driven[RequiresFact(...)], network-free unit tests, removing low-value tests, and the core coverage gaps. All of it stays out of the EF-store and DI-registration tests that #136 is moving.Microsoft.EntityFrameworkCore.InMemorydropped, and the integration-CI changes.The issue closes with the second PR.