To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
Set environment variable via "cucumber"-step
It is quite handy to modify the environment of a process. To make this
aruba provides several steps. One of these is
I set the environment variables to:-step. Using this step sets the values of a
non-existing variables and overwrites an existing values. Each variable name
and each value is converted to a string. Otherwise
ruby would complain
about an invalid argument.
- I use the fixture "cli-app"
- Set environment variable by using a step
an executable named "bin/cli" with:
#!/bin/bash echo $LONG_LONG_VARIABLE
a file named "features/home_variable.feature" with:
Feature: Environment Variable Scenario: Run command Given I set the environment variables to: | variable | value | | LONG_LONG_VARIABLE | long_value | When I run
cliThen the output should contain: """ long_value """
- the features should all pass
Last published about 6 years ago by Max Meyer.