Project Dependencies on Invoke-DatabaseTests
ssvoss
Posts: 2 Bronze 1
I have a solution for my database that includes one project for the DB objects I need in every environment (main project) and another project with all the testing objects (test project). As described in [1].
In my build script I use the PowerShell commandlets to Invoke-DatabaseBuild, New-DatabaseBuildArtifact, and Export-DatabaseBuildArtifact on main.sqlproj
In my test script I'm trying to use Invoke-DatabaseTests on test.sqlproj. However it errors and it is obvious that the main project is not being built and deployed before deploying the test project. (As I might have expected due to setting up a project build dependency)
What is the best practice for this or what have people found that works?
[1] https://documentation.red-gate.com/sca3/tutorials/worked-examples/use-tsqlt-with-sql-change-automation-projects
In my build script I use the PowerShell commandlets to Invoke-DatabaseBuild, New-DatabaseBuildArtifact, and Export-DatabaseBuildArtifact on main.sqlproj
In my test script I'm trying to use Invoke-DatabaseTests on test.sqlproj. However it errors and it is obvious that the main project is not being built and deployed before deploying the test project. (As I might have expected due to setting up a project build dependency)
What is the best practice for this or what have people found that works?
[1] https://documentation.red-gate.com/sca3/tutorials/worked-examples/use-tsqlt-with-sql-change-automation-projects
Tagged:
Answers
Thanks for posting on the Redgate forums.
If you need any specifc help troubleshooting the errors please do post them here or create a support ticket at https://productsupport.red-gate.com/hc/en-us
Dan Bainbridge
Product Support Engineer | Redgate Software