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-names
flag forapex run test
offers duplicative functionality from the--tests
flag.Both flags support using an Apex test class name, the only difference being that you can also include test methods or IDs with the
--tests
flag, which--class-names
doesn'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 10
sf apex run test --class-names TestClass -w 10
With that being said, should
--class-names
be 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