Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Ability to tell the browser to connect to a specific host and port. #96
When using the testling command to test browsers running in Virtual Machines (ie. IE), the URL that gets generated is always
This PR allows you to override the hostname that is provided to the browser when it is launched, as well as the port too.
I'm using testling with the iectrl command line tool to automatically launch IE in a VirtualBox VM, and then to pass it the URL, like so:
# run test in ie9 and then close the browser (10.0.2.2 is the host IP that ievms initializes) $ browserify test/ie.js | testling --host=10.0.2.2 -x 'iectrl open -s 9'; iectrl close
It's also useful to be able to hard code the port if you are continually debugging a test, so you can just refresh the browser with the same port rather than use the randomly assigned ports.
# listen on port 9000 $ browserify test/ie.js | testling --host=10.0.2.2 --port 9000 -u http://10.0.2.2:9000/__testling?show=true