Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
4 years ago[25] Testing ?
I was wondering how you would recommend testing our scripts that make use of the CLI ?
There is for instance the --dry-run option, but do you use other means on your side ?
For instance, wou...
Former Member
4 years agoHey @ebreton
Do you find the new --dry-run
option in op item create/edit
helpful for testing? Keep in mind that authentication is still required to use the --dry-run
option.
Given your feedback, I'm also thinking that mock modes for create and edit commands that validate the input could be quite useful.
While we don't have official testing guides, I do my fair share of testing on op
as a developer.
My general approach is to have a Test vault, and create items just for testing. Once my testing is done, I usually clean up the test item(s).
To speed things up, I have a few templates of some of the more common item categories as well
Appreciate your input!