How do I prevent Test Cases from being migrated to production?
Starting in version 4.4, Deployment Manager gives you an ability to specify a test application and product rule for the test artifacts. This artifact is deployed independently of your application artifact in the same pipeline, up until the stage chosen by you in the pipeline e.g. you can choose your tests to deploy only on Quality Assurance and not on Staging and Production stages in a pipeline.
This discussion goes into slightly more detail about to structure the application.
This is a frequently asked question about Deployment Manager. Find more answers here.