Configurable port for parallel testing #1

Closed
wants to merge 1 commit into
from

1 participant

@chriswdb

This patch makes the port used for webkit configurable by environment variable; this is useful for running multiple webkits during parallelized testing, e.g.:

Before do
  if Capybara.current_driver == :webkit
    # Use different ports for parallel testing
    if ENV['TEST_ENV_NUMBER']
      ENV['CAPYBARA_WEBKIT_PORT'] = (9200 + ENV['TEST_ENV_NUMBER'].to_i).to_s
    end
  end
end
@chriswdb chriswdb closed this Jun 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment