You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is also recommended to use the same provider for testing as the one used in production as they could have drastically different behaviors, see testing against the production database.
The connection / connection string for the same provider can be changed easily:
AndriySvyryd
changed the title
Customize WebApplicationFactory section doesn't work with EF 9.0
"Customize WebApplicationFactory" section doesn't work with EF 9.0
Jan 28, 2025
Description
The approach outlined in https://learn.microsoft.com/aspnet/core/test/integration-tests?view=aspnetcore-9.0#customize-webapplicationfactory no longer works. It was relying on implementation details, see #35126
It is also recommended to use the same provider for testing as the one used in production as they could have drastically different behaviors, see testing against the production database.
The connection / connection string for the same provider can be changed easily:
Page URL
https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-9.0#customize-webapplicationfactory
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/test/integration-tests.md
Document ID
f499b131-8b14-7e10-1728-543fdd5a5656
Article author
@tdykstra
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: