openstack-health/test
mccasland, trevor (tm2086) fd387956f4 Add support for HeadlessChrome in karma
Motivation for this change:
  As a tester, I want to execute npm unit tests in a headless
  chrome environment.

Notes on implementation:
  * Running headless chrome requires verion chrome 59 or greater[1]
  * --no-sandbox flag is a workaround for running as root[2]
  * HeadlessChrome base was added in karma-chrome-launcher v2.1.0[3]
    - upgrading to this package caused a CHROME_BIN not set error[4].
      Setting CHROME_BIN to chromium-browser fixes the issue.
  * Using Chrome without the upgraded packages causes an error during
    the coverage report generation
    - TypeError: Cannot read property 'start' of undefined[5]

[1] https://github.com/karma-runner/karma-chrome-launcher#available-browsers
[2] https://github.com/karma-runner/karma-chrome-launcher/issues/158
[3] https://github.com/karma-runner/karma-chrome-launcher/releases/tag/v2.1.0
[4] http://paste.openstack.org/show/715433/
[5] https://review.openstack.org/#/c/456556/9

Change-Id: I907708d73b5fe5345f3a56d8d638c51e7d3aa6f7
2018-03-27 15:05:26 -05:00
..
e2e Apply quotes rule for js files 2016-01-27 17:04:58 +09:00
unit Fix ratio to percent on failure rate graphs 2017-03-19 17:16:01 +08:00
karma.conf.js Add support for HeadlessChrome in karma 2018-03-27 15:05:26 -05:00
protractor.conf.js Run unit tests in Chrome instead of PhantomJS 2016-03-15 15:29:26 -06:00