-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use JSON source generator in WebApplicationFactory #55595
Use JSON source generator in WebApplicationFactory #55595
Conversation
Just noticed that the old labels were set manually. Why networking, @mkArtakMSFT? |
FYI @captainsafia |
a477d21
to
0efaa78
Compare
@martincostello TY for the PR. We reference the Mvc.Testing package in other tests in the repo (Identity.FunctionalTests, MvcFunctionalTest, for example). We can probably verify whether or not this fix applies by setting the |
Playing around with Microsoft.AspNetCore.Mvc.FunctionalTests locally I get the following results:
The tests that fail for me regardless of the settings are from |
|
@captainsafia Anything more you need me to do here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM -- the test failures that have been plaguing this PR are related to our ongoing issues with the Mvc.FunctionalTests and Mvc.TemplateTests.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Use JSON source generator to deserialize dictionary. Resolves dotnet#55586.
0efaa78
to
08e4725
Compare
Mvc.TemplateTests are skipped and OpenAPI test fix is merged. Hopefully this goes through smoothly 🤞🏽 Edit: to that end I'll optimistically set auto-merge on this. |
build-ops; CI post-merge failure, but nothing to do with this PR; I'll try and poke some things (CI failure is about changing "shipped" files inappropriately, which this PR does not even remotely do) also an unrelated secondary failure about feel failures; I guess CI is having a very bad day |
Use JSON source generator in WebApplicationFactory
Use JSON source generator to deserialize dictionary.
Description
Use JSON source generator to deserialize JSON to prevent
InvalidOperationException
in a test project withJsonSerializerIsReflectionEnabledByDefault=false
.I wasn't sure how to test this without having to add an entirely new test project - happy to add something if someone can give a suggestion on how to go about that in a way that would be acceptable to the team.
Fixes #55586