Attempt to run functional tests without workers and against fewer browsers against the right test framework.

This commit is contained in:
Dorian 2016-11-05 16:00:20 -04:00
parent b0108fcb79
commit 76ab83f054
3 changed files with 41 additions and 19 deletions

View File

@ -94,7 +94,8 @@ task ("test-functional-js", function ()
exec("docker-compose", "up", "-d")
-- exec("docker-compose", "run", "webapp", "nightwatch", "-e", "firefox")
exec("docker-compose", "exec", "webapp", "nightwatch", "-e", "firefox")
-- exec("docker-compose", "exec", "webapp", "nightwatch", "-e", "firefox")
exec("docker-compose", "exec", "webapp", "nightwatch")
end)
desc("Demos Rookeries in a browser")

View File

@ -40,7 +40,8 @@ test:
# Wait for tunnel to be ready
- while [ ! -e .saucelabs/sauce_is_ready ]; do sleep 1; done
# TODO: Enable web tests when browser issues resolved
- ./rote -B -v test-functional
# - ./rote -B -v test-functional
- ./rote -B -v test-functional-js
post:
- killall --wait sc # wait for Sauce Connect to close the tunnel

View File

@ -18,28 +18,48 @@
}
},
"test_settings": {
"default": {
"launch_url": "http://localhost",
"selenium_host": "http://localhost",
"selenium_port": 6666,
"test_settings" : {
"default" : {
"launch_url" : "http://localhost",
"selenium_port" : 80,
"selenium_host" : "ondemand.saucelabs.com",
"silent": true,
"disable_colors": true,
"screenshots": {
"enabled": false,
"path": ""
"screenshots" : {
"enabled" : false,
"path" : ""
},
"username" : "${SAUCE_USERNAME}",
"access_key" : "${SAUCE_ACCESS_KEY}",
"desiredCapabilities": {
"browserName": "phantomjs",
"phantomjs.cli.args": [
"--ignore-ssl-errors=true"
],
"phantomjs.page.settings.userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36",
"phantomjs.binary.path": "/usr/local/bin/phantomjs",
"javascriptEnabled": true,
"acceptSslCerts": true
}
}
}
},
"chrome": {
"desiredCapabilities": {
"platform": "Windows XP",
"browserName": "chrome",
"version": "41"
}
},
"firefox" : {
"desiredCapabilities": {
"platform": "Windows XP",
"browserName": "firefox",
"version": "33"
}
},
"internet_explorer_10" : {
"desiredCapabilities": {
"platform": "Windows 7",
"browserName": "internet explorer",
"version": "10"
}
}
}
}