I would like to pass command line parameters to my Node.js/Jasmine tests. At the moment I have basic Jasmine file/dir structure set up (jasmine.json file and specs - as in the example: Jasmine documentation).
I run specs from command line by executing the following command:jasmine
.
I would like to pass some command line parameter, so that I can use it in my specs. I would run tests with the following command:jasmine --param value
or jasmine param_value
. Is it possible (how to do that)?
The parameter I want to pass is a password and I don't want to hardcode it - maybe you can suggest any better solution?
Thanks in advance!
via Mike_M2
No comments:
Post a Comment