Comments
1 comment
-
Hi @gbritton - thank you for your question! When deploying from your VCS with SQL Compare Pro there are built-in project options (before you carry out the comparison) in SQL Compare to ignore the 'tSQLt framework and tests'. Let me know if this helps!
https://documentation.red-gate.com/sc13/setting-up-the-comparison/setting-project-options
Add comment
Please sign in to leave a comment.
Stored Procedure to be tested: schema1.storedprocedure
tSQLt class: schema1_storedprocedure
With that convention, when it is time to deploy changes to higher environments (e.g. using SQL Compare), both the tSQLt schema and the class schema schema1_storedprocedure are offered for deployment. We don't want the framework or the tests promoted.
What are some strategies to keep unit tests from polluting higher environments?