Summary
sfcli apex test run command is throwing an error "
- sf apex run test -o -l RunLocalTests -d {dir} -w 240 -r human -c
Error (10): Cannot read properties of undefined (reading 'Status')"
Steps To Reproduce
IMPORTANT
First authenticate the user using salesforce cli. Use the authenticator token to run the following command
sf apex run test -o -l RunLocalTests -d {dir} -w 240 -r human -c
Expected result
This should give the test result report along with the coverage for each class
Actual result
It is throwing an error
"Error (10): Cannot read properties of undefined (reading 'Status')""
System Information
Jenkins linux agent
Salesforce cli version:
- sf --version
@salesforce/cli/2.26.10 linux-x64 node-v18.17.1
Summary
sfcli apex test run command is throwing an error "
Error (10): Cannot read properties of undefined (reading 'Status')"
Steps To Reproduce
sf apex run test -o -l RunLocalTests -d {dir} -w 240 -r human -c
Expected result
This should give the test result report along with the coverage for each class
Actual result
It is throwing an error
"Error (10): Cannot read properties of undefined (reading 'Status')""
System Information
Jenkins linux agent
Salesforce cli version:
@salesforce/cli/2.26.10 linux-x64 node-v18.17.1