This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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] karma-runner/karma-chrome-launcher#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
- Loading branch information