[WebApplicationFactory - TestContainers] PostgreSqlContainer is not initialized. #256
Unanswered
PetrosK-hue
asked this question in
Q&A
Replies: 1 comment
-
The Maybe others will provide a better idea, but what comes to my mind is that you can initialize your service from an async BeforeScenario hook. Something like this:
If you do so, the |
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
-
Hello everyone,
I am trying to implement some integration tests and I cannot initialize the web application factory.
The error it throws is:
Error
However, test container is initialized in the factory class using IAsyncLifetime and InitiliazeAsync().
StatusControllerFactory.cs
CustomerStatusSteps.cs
Is there any workaround? This implementation works for xUnit runner...
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions