Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apex:test:run command does not support running tests by providing the class id #155

Closed
lcampos opened this issue Mar 10, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@lcampos
Copy link
Contributor

lcampos commented Mar 10, 2021

Summary

The official docs and the help output for force:apex:test:run indicates that a user can provide a test's name or id under the -t flag. Providing an Apex test class ID throws the error This class name's value is invalid: 01p5A00000A1aBfQAJ. Provide the name of an Apex class that has test methods.

Steps To Reproduce:

  1. Run force:apex:test:run by provide an Apex test ID e.g. sfdx force:apex:test:run -t 01p5A00000A1aBfQAJ
  2. Throws an error:
sfdx force:apex:test:run -t 01p5A00000A1aBfQAJ
Listening for streaming state changes...
ERROR running force:apex:test:run:  This class name's value is invalid: 01p5A00000A1aBfQAJ. Provide the name of an Apex class that has test methods.

Expected result

The command should be able to execute the Apex tests when a user provides the Apex test class ID.

@lcampos lcampos changed the title test:run command does not support running tests by providing the class id apex:test:run command does not support running tests by providing the class id Mar 10, 2021
@AnanyaJha AnanyaJha added the bug Something isn't working label Mar 11, 2021
AnanyaJha added a commit that referenced this issue Mar 15, 2021
@AnanyaJha
Copy link
Contributor

Addressed by PR #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants