Skip to content

Fix Loom.Web.Tests: SQLite test factory + refresh stale assertions#16

Merged
Extentsoftware merged 1 commit into
mainfrom
claude/hungry-roentgen-98ccdf
May 9, 2026
Merged

Fix Loom.Web.Tests: SQLite test factory + refresh stale assertions#16
Extentsoftware merged 1 commit into
mainfrom
claude/hungry-roentgen-98ccdf

Conversation

@Extentsoftware
Copy link
Copy Markdown
Owner

Summary

  • Switch LoomWebFactory from EF InMemory swap to a per-factory SQLite temp file via ConnectionStrings:Loom. Eliminates the dual-provider error (AddLoomInfrastructure registers SqlServer; the swap left both providers in DI), and reuses the existing isSqlite/EnsureCreatedAsync paths in ServiceCollectionExtensions and LoomBootstrapper.
  • Refresh two stale HostSmokeTests assertions: pages use InteractiveServerRenderMode(prerender: false), so the home GET returns layout chrome only and unknown routes return a bare 404. No production changes.

Test plan

  • dotnet test tests/Loom.Web.Tests/Loom.Web.Tests.csproj --nologo — 3/3 passing
  • dotnet test --nologo -m:1 — full suite: 164/164 passing across 9 projects

🤖 Generated with Claude Code

…rtions

LoomWebFactory previously registered EF InMemory on top of the
SqlServer provider that AddLoomInfrastructure wires up, which EF
rejects ('multiple providers registered'). The factory now hands
AddLoomInfrastructure a SQLite connection string (per-factory temp
file), driving the existing isSqlite branch and the bootstrapper's
EnsureCreatedAsync path. No production changes.

HostSmokeTests' empty-state and not-found body assertions were stale
relative to the current rendering mode (InteractiveServer with
prerender:false): the page body isn't SSR'd, so initial GETs return
layout chrome only, and unknown routes return a bare 404. Updated
assertions accordingly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Extentsoftware Extentsoftware merged commit 43f9d86 into main May 9, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant