Conversation
… test (#12332) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughFile header updated with a build directive. The ChangesAspire Test Host Setup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
closes #12332
Summary
When running
dotnet teston an Aspire-enabled Boilerplate project, the AppHost starts all resources defined — including admin UIs, dev tunnels, telemetry listeners, and MAUI device emulators. These add significant startup time without providing any value during automated tests.This PR updates
TestsAssemblyInitializer.csto remove the following unnecessary resources before building and starting the Aspire app:DevTunnelResource/DevTunnelPortResourceDbGateContainerResource(SqlServer),PgAdminContainerResource(PostgreSQL),PhpMyAdminContainerResource(MySQL),SqliteWebResource(Sqlite)RedisInsightResource,RedisCommanderResourceMauiAndroidDeviceResource,MauiAndroidEmulatorResourceOnly essential infrastructure (databases, Redis, etc.) runs during tests, reducing startup time considerably.
Summary by CodeRabbit