So Im trying to figure out a way to properly unit test database procedures in visual studio so I can integrate it into our deployment pipeline.
what I am doing right now is create a database project and link it to our database. Then generate unit test with visual studio on the procedures. The problem is that unit testing the procedures this way will make changes to data in the actual database (which I don't want). Another problem is when someone make change to the database without updating that database project
I can either:
do a rollback after every unit test (but there are some procedures that contain
commit, so even if Irollbackinc#, some part will still get committed)create a testing database (not an option in my situation)
create a in-memory database (I prefer this option. I checked out
SQLite. However it doesn't seem to support procedures)
Any advises or suggestions are appreciated