I'm implementing an Database Continuous Integration process using SQL Server , SSDT, GIT and VSTS, i'm quite new to it as well, so here it goes:
I can already develop in my local machine, sync the Visual Studio Database Project with my local Database using both "Publish" and "Schema Compare" features.
I'm also able to trigger a Build Definition in VSTS at each "Push" operation, that will build and then trigger a release to QA environment. Now i'm trying to put some unit tests that runs automatically after the build, though when the Build Definition runs, it cannot find any Database within the Build VM SQL Server Instance (the VM which is created every time you run an Build Definition)...
So i need to apply somehow my database schema to it, so it can run the automated tests through the "Visual Studio Test" Task within the Build Definition. I imagine that should be something like the "Publish" feature, or should i try deploying the .dacpac file using a PowerShell Script?
I've tried to follow this tutorial: https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/perf-test/continuous-build-test-automation#test-integration-with-the-build
But i can't figure it out how to configure the Step 4 "Use "Database Sync" task" in the "Test integration with the build" section of the article.
Please, have anyone done this before?