Mercurial > hg > thermostat-ng > web-client
changeset 147:7c160e4e81a1
Run integration tests headlessly
Reviewed-by: jkang
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-July/024196.html
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-August/024420.html
author | Andrew Azores <aazores@redhat.com> |
---|---|
date | Thu, 03 Aug 2017 14:38:09 -0400 |
parents | e3ef516af2f4 |
children | 63983088d5b7 |
files | README.md integration-test/integration-test.config.js |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/README.md Wed Aug 02 09:24:15 2017 -0400 +++ b/README.md Thu Aug 03 14:38:09 2017 -0400 @@ -6,6 +6,8 @@ ## Dependencies: +`Google Chrome` or `Chromium` browser with version >=58 for integration testing. + `npm`, which will pull down all other dependencies. `keycloak.json` generated by a Keycloak server (if desired, ie, running with @@ -81,7 +83,9 @@ suite when any test file changes. To run integration tests separately, use `npm run integration-test`. This will -require the embedded webserver to be running, using ex. `npm start`. +require the embedded webserver to be running, using ex. `npm start`. The +integration test server requires Chromium or Google Chrome browser with major +version >= 58 to be installed on the host system. ### Development Tips
--- a/integration-test/integration-test.config.js Wed Aug 02 09:24:15 2017 -0400 +++ b/integration-test/integration-test.config.js Thu Aug 03 14:38:09 2017 -0400 @@ -42,6 +42,12 @@ exports.config = { framework: 'mocha', + capabilities: { + browserName: 'chrome', + chromeOptions: { + args: [ '--headless', '--disable-gpu', '--window-size=1920x,1080' ] + } + }, mochaOpts: { reporter: 'mocha-multi', reporterOptions: {