-
Notifications
You must be signed in to change notification settings - Fork 78
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
Why is it necessary to specify test level when passing tests in a deployment? #2396
Comments
This issue has been linked to a new work item: W-13897188 |
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
Hey @mnunezdm, I just want to clarify what you are suggesting. Currently if you want to run specific tests, you would need to run:
Are you suggesting that if we are passing
|
That's it! |
Hey @mnunezdm 👋🏼 , sorry for the late reply I think that's possible ( |
hello @cristiand391 in deployments I think it still is necessary
|
sorry, I meant to say it would be possible to do this without any breaking change, so far only |
We are good making this change in the non-deprecated commands, marking it as help wanted in case someone wants to add this, some tips: oclif (the CLI framework we use) allows to set a default value for a flag, here we just want to set first, you would have to delete the after that, running something like
something like this should be a good start: default: async (context) => {
if (context.flags.tests) return TestLevel.RunSpecifiedTests
}, oclif docs: https://oclif.io/docs/flags/#custom-flags |
Ran with the above guidance from @cristiand391 and added a NUT to cover the test case. Apologies if I missed anything, this is my first OSS contribution. Also if there's any tips for setup to run |
@cbohlman - merged into plugin-deploy-retrieve and will be picked up by the next RC. Or you can get it in the just published v2.1.0 of the plugin. Thanks for the contribution! |
Is your feature request related to a problem? Please describe.
There ire 4 possible ways to perform a deployment regarding tests:
For deploying without tests there is not necessary to pass anything
For deploying with local / and all tests you need to pass the test-level flag
For running specified tests, you need to pass the test-level flag, and also a test argument for every test
What are you trying to do
n/a
Describe the solution you'd like
For me, it would be more natural to just pass the test list without needing to specify the test level flag
Describe alternatives you've considered
n/a
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: