[Architecture] Headless mode coming for Chrome...
Tirloni, Giovanni
gtirloni at ocadu.ca
Tue Jun 6 14:01:40 UTC 2017
On 07/11/2016 05:56 AM, Tony Atkins wrote:
> To continue our ongoing discussions around browser testing, I wanted to point out the upcoming release of a "headless" mode for Chromium.
> https://bugs.chromium.org/p/chromium/issues/detail?id=546953
Hello,
I tested Chrome 59 and Firefox 55 Nightly in headless mode [0][1]. Everything worked fine with Chrome (all tests pass).
Firefox is not quite there yet (multiple failures in Infusion and OAuth2 fail in GPII/universal).
This should greatly simplify our CI setup, once it's ready (no need for Xorg/Xfvb, the browser could be in a container image).
0 - https://bugzilla.mozilla.org/show_bug.cgi?id=1338004
1 - https://www.mozilla.org/en-US/firefox/channel/desktop/
Regards,
Giovanni
#GPII/universal/tests/web/testem_qi.json:
{
"test_page": "tests/web/html/all-tests.html",
"reporter": "tap",
"report_file": "report.tap",
"browser_args": {
"Chrome": [ "--headless", "--disable-gpu", "--remote-debugging-port=9222" ]
},
"launchers": {
"Firefox Nightly": {
"command": "/home/gtirloni/Downloads/firefox-nightly/firefox/firefox --headless <url>",
"protocol": "browser"
}
}
}
# fluid-project/infusion/tests/testem.json
{
"test_page": "tests/all-tests.html",
"timeout": 300,
"reporter": "tap",
"report_file": "report.tap",
"browser_args": {
"Chrome": [ "--headless", "--disable-gpu", "--remote-debugging-port=9222" ]
},
"launchers": {
"Node Module Basic Packaging Tests": {
"command": "node tests/node-tests/basic-node-tests.js --tap",
"protocol": "tap"
},
"Firefox Nightly": {
"command": "/home/gtirloni/Downloads/firefox-nightly/firefox/firefox --headless <url>",
"protocol": "browser"
}
}
}
More information about the fluid-work
mailing list