Replies: 1 comment
-
|
There is an open issue at testcontainers/Docker.DotNet#88 for making the fork of Docker.Dotnet AOT compatible and an open PR at the original repository dotnet/Docker.DotNet#706. I suppose until Docker.Dotnet is made ready, using TestContainers with AOT is not possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an Asp.Net Core 10 application which enables native AOT publish so my TUnit integration tests enable native AOT as well. TUnit logs told that my tests use source-generation mode. I created some integration tests using TestContainers but when I start my tests I get the classic error message that my application uses source-generated JSON serialization so please use JsonTypeResolver. I get this error due to TestContainers because it uses Docker.Dotnet which uses Json Serialization inside. As I can see I can't configure a JsonTypeResolver for Docker.Dotnet.
Can I use TestContainers with native AOT published applications? Or should I looking for a workaround?
I would be very appreciate to share your ideas with me.
Beta Was this translation helpful? Give feedback.
All reactions