You need to sign in to do that
Don't have an account?

test fails when deploy
Hi,
Appreciate any help. We can't deploy our Apex class and trigger as some of the existing Apex test are failing. I believe it is required to run test on all classes. Any way around this? The failed test consists of both managed scripts and custom scripts created on our first implementation of Salesforce by a vendor. How can I find out if there's any impact if we remove these scripts?
Appreciate any help. We can't deploy our Apex class and trigger as some of the existing Apex test are failing. I believe it is required to run test on all classes. Any way around this? The failed test consists of both managed scripts and custom scripts created on our first implementation of Salesforce by a vendor. How can I find out if there's any impact if we remove these scripts?
See the below screenshot.
By selecting Run Specified Test , you can specify the testclasses that needs to run during validation. Add the test classes of apex classes and triggers in your new change set and validate it. It will not run existing test classes in production org. After successful validation go for quick Deployment. Hope this will work for you.
If you remove test classes your coverage will drop.
How do we get the screenshot above?
When you deploy your changeset, there is one buton to validate the changeset. It will redirect you to the above page where you can specify the test option.
When I clicked validate deployment, it auto launch the validation without having the window form(as your screenshot) for me to choose. Can I find in the browser directly? Or is this the validate button you mean?
Use the Run Specified Tests option in the production, give the Test class name in the Box and run only the particular test class and deploy it.
Thanks
Vinuthh S