Skip to content

sfcli apex test run command is throwing an error "Error (10): Cannot read properties of undefined (reading 'Status')" #346

@RohitGagan16

Description

@RohitGagan16

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions