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
BHASKAR GANGULYBHASKAR GANGULY 

test classes run on destination org

HI,
I have a generic question arround running apex test classes before deploying to destination org.
I am running salesforce CLI command sfdx force:apex:test:run.
my question is how to run the test classes present in source folder before deploying that in destination org.
if a certain test class in not present in destination org will that fail?
if i am running the following command
sfdx force:apex:test:run -l RunLocalTests -d <path to outputdir> -u me@my.org
its running for all the test classes that is present in that destination org.
Please suggest.

Thanks,
Bhaskar