Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@a43ti.eurosky.socialOct 29, 2026, 8:48 PM

pt 2, showing the fixed tests

basically solved by moving the values injection to factory class instead of test constructors 🤦

(tests taking up to 7.5 mins in last pic - its ok, they are for a periodically working service)

#buildinpublic #dev #dotnet #qa #testing #xunit #aspnetcore #githubactions

new fixed web application factory. app config modification happens, as I saw with the debugger, inside the builder.Build() line in program.cschanged the class fixture in the integration test classes which were buggybtw that's how I reorganized test credentials, all in one place now, used it in unit tests too btw not only integrationtadaaa successful test job in github actions! everything passed, especially the 3 hardest ones marked here, and finally a "succeeded" message in slack
@a43ti.eurosky.socialOct 29, 2026, 8:48 PM

yesterday I fixed integration tests in my little practice #api

I struggled to inject app config values for tests instead of those in appsettings. the problem was my factory changing config AFTER app build due to wrong fixture use

#buildinpublic #dev #dotnet #qa #testing #xunit #aspnetcore

the main problem that was breaking integration tests: connection string to test database wasn't suppliedthat's how I was trying to sneak right connection string for test DB into the configuration of web application factory in integration tests. notice that its taking place in a constructor of a test class. which was too late... a Web App Factory was already created before tests, as a class fixture worksthe amount of tests which failed due to this misconfiguration, all of them integration testssame error there was on all integration tests, broke on the attempt of the first interaction with the db