I have set up integration tests with Postgresql and testcontainers before, but for some reason, I cannot work my way through doing it with an in-memory sqlite database. I have had lots of problems with the docker set up and all, but I came to the realisation that my test cases that depend on the fixture never actually start!
In my initial test fixture (AppFixture, needed for testing the FastEndpoints implementation), I could not see anything happening. After extracting error messages from the Docker build command, it became apparent that there was some infinite loop within the fixture (and the IntegrationTestFactory, which is very comparable). My testfixture implementation:
Now, I have been trying to figure out why I cannot get a connection set up, and when I replaced my ConfigureApp implementation with the following, I suddenly got an SqliteException on the
connection.Open();
connection.Open();
line. For a bit, I thought this worked, but when I made a test case that actually tests the controller again, the tests time out again, never giving me any output. When debugging, all I get is this, for days now: