Difference between --class-names and --tests flags for apex run test?
#3172
k-capehart
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems to me that the
--class-namesflag forapex run testoffers duplicative functionality from the--testsflag.Both flags support using an Apex test class name, the only difference being that you can also include test methods or IDs with the
--testsflag, which--class-namesdoesn't support.To confirm, I ran both of these commands in my org and got the exact same result.
sf apex run test --tests TestClass -w 10sf apex run test --class-names TestClass -w 10With that being said, should
--class-namesbe deprecated in favor of--tests? Or is there something I'm missing that can be clearly expressed in documentation?Beta Was this translation helpful? Give feedback.
All reactions