Browse Source

Merge "update test section about requiring chromium"

changes/06/602406/1
Zuul 9 months ago
parent
commit
0ce9a83c47
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      README.rst

+ 15
- 0
README.rst View File

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

Loading…
Cancel
Save