Variables
The env.vars
object contains a set of variable values. You can use these variables to parameterize your script.
Script parameters
It is possible to declare parameters in the script
function call. The env.vars
object will contain the values of these parameters.
When invoking this script in VS Code, the user will be prompted to provide values for these parameters.
Variables from the CLI
Use the vars
field in the CLI to override variables. vars takes a sequence of key=value
pairs.
Variables in tests
You can specify variables in the tests
object of the script
function. These variables will be available in the test scope.