Merge "update test section about requiring chromium"
This commit is contained in:
commit
0ce9a83c47
15
README.rst
15
README.rst
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue