© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago•
7 replies
owlzyhoots

✅ Relation Does not Exist when running Tests

Hi, trusting y'all are well. So I am runnin into this issue where my XUnit tests using a Postgres Test Container fail with the error message
Npgsql.PostgresException : 42P01: relation "Accidents" does not exist
Npgsql.PostgresException : 42P01: relation "Accidents" does not exist
. I have an extension method
Apply Migrations
Apply Migrations
that should run the migrations when the container starts. I'd appreciate your aid, thanks!
Screenshot_2025-03-31_141847.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Dapper InsertAsync fails on Postgres with relation does not exist
C#CC# / help
4y ago
✅ BuildServiceProvider does not exist
C#CC# / help
2y ago
debug profile does not exist
C#CC# / help
4y ago
UniqueIdentifer Type does not exist Ef Core
C#CC# / help
2y ago