+ Start a Discussion
balraj singh 33balraj singh 33 

Some test classes are failing in Salesforce CLI

Some Test classes are failing in salesforce CLI , but they run successfully in UI or dev console.

Command :

sfdx force:apex:test:run --testlevel RunLocalTests --codecoverage --resultformat human --wait 30 -u $org_username

Error : Outcome: Fail Message: Your request exceeded the time limit for processing. connection was cancelled here Runtime

Also Test classes failed have ".null" appened after the name in report , not sure why.
AbhinavAbhinav (Salesforce Developers) 
Hi Balraj,

Is it also failing when when you palcing specific --classnames parameters in your command.

balraj singh 33balraj singh 33
@Abhinav , No it does nit fail when a run tests for a specific class  using --classnames parameters
But why it fails when i use --testlevel RunLocalTests