_cucumber/lib/options/run_tests_options.rb
#
# Binds the environment variables required to correctly influence the driver used by Cucumber.
# If we are trying to run in Docker, we also set the RHD_REMOTE_DRIVER env variable.
#
Binds the environment variables required to correctly influence the driver used by Cucumber.
If we are trying to run in Docker, we also set the RHD_REMOTE_DRIVER env variable.
Binds the environment variables required to correctly influence the driver used by Cucumber . If we are trying to run in Docker we also set the RHD_REMOTE_DRIVER env variable .
def bind_driver_environment_variables(run_in_docker, driver, test_configuration)
    if run_in_docker
       We set the docker driver to either docker_chrome or docker_firefox. docker_chrome is the default
       when we are looking to emulate other drivers e.g. iphone_6
      docker_driver = @supported_drivers.include?(driver) ? "docker_{driver}" : 'docker_chrome'
      driver = @supported_drivers.include?(driver) ? "docker_{driver}" : driver
      bind_environment_variable('RHD_REMOTE_DRIVER', docker_driver)
      test_configuration[:docker_node] = docker_driver
    end
    bind_environment_variable('RHD_JS_DRIVER', driver)
  end
def bind_driver_environment_variables ( run_in_docker , driver , test_configuration ) if run_in_docker docker_driver = @supported_drivers . include? ( driver ) ? "docker_#{driver}" : 'docker_chrome' driver = @supported_drivers . include? ( driver ) ? "docker_#{driver}" : driver bind_environment_variable ( 'RHD_REMOTE_DRIVER' , docker_driver ) test_configuration [ :docker_node ] = docker_driver end bind_environment_variable ( 'RHD_JS_DRIVER' , driver ) end
Binds the environment variables required to correctly influence the driver used by Cucumber.
Binds the environment variables required to correctly influence the driver used by Cucumber .
# # We set the docker driver to either docker_chrome or docker_firefox. docker_chrome is the default # when we are looking to emulate other drivers e.g. iphone_6 #
run_in_docker
<not_specific>
driver
<not_specific>
test_configuration
<not_specific>