Merge "update test section about requiring chromium"

This commit is contained in:
Zuul 2018-09-10 22:25:29 +00:00 committed by Gerrit Code Review
commit 0ce9a83c47
1 changed files with 15 additions and 0 deletions

View File

@ -226,6 +226,21 @@ To test python code, run::
Frontend
--------
The frontend tests ``npm test`` and ``npm run unit`` use a headless chrome
driver and the driver requires the chromium-browser package to be installed on
the system, you can do this by running::
$ sudo apt-get install chromium-browser
.. note::
When using an operating system that is not ubuntu 16.04 the
process.env.CHROME_BIN variable may need to be updated in
openstack-health/test/karma.conf.js to reflect your system's chromium
path.
For example on SUSE Leap OS, process.env.CHROME_BIN = '/usr/bin/chromium'
must be set.
To test javascript code, run::
$ npm test