function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Suraj_BahaleSuraj_Bahale 

Can anyone please help me with This Question?

Q. A change set deployment from a sandbox to production fails due to a failure in a managed package unit test. The developer spoke with the managed package owner and they determined it is a false positive and can be ignored. What should the developer to do successfully deploy?

A. Edit the managed package’s unit test.
B. Select fast deploy to run only the tests that are in the change set.
C. Select “Run local tests” to run only the tests that are in the change set.
D. Select “Run local tests” to run all tests in the org that are not in the managed package.
Best Answer chosen by Suraj_Bahale
Khan AnasKhan Anas (Salesforce Developers) 
Hi Suraj,

Greetings to you!

Select "Run Local Tests" to run all the test in the org that are not in the managed package.

The 'Run Local Tests' option is for the purpose of running test classes that are written for apex classes present in our org, and this option restricts the test classes of any managed pack that you have got from AppExchange.

Please refer to the below links which might help you further.

https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_deployment_change_sets_test_levels.htm

https://www.salesforcetutorial.com/running-specified-tests-changeset-deployment/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Suraj,

Greetings to you!

Select "Run Local Tests" to run all the test in the org that are not in the managed package.

The 'Run Local Tests' option is for the purpose of running test classes that are written for apex classes present in our org, and this option restricts the test classes of any managed pack that you have got from AppExchange.

Please refer to the below links which might help you further.

https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_deployment_change_sets_test_levels.htm

https://www.salesforcetutorial.com/running-specified-tests-changeset-deployment/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Suraj_BahaleSuraj_Bahale
Thank You, It will help a lot.