update test section about requiring chromium

when running npm test and npm run unit without the chromium-browser
package installed, the tests fail to run[1]. This commit aims to make
the requirement for this package clear to testers.

[1] http://paste.openstack.org/show/727761/
Change-Id: I5685af1160321378829df27f31c0da1724d263ab
This commit is contained in:
mccasland, trevor (tm2086) 2018-08-09 13:47:40 -05:00 committed by Trevor McCasland
parent 7c21193511
commit b942859fcf
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