Update README for running tests

`npm test` was split into 2 separate commands from unit and func
tests. Also instructions to run a single functional tests were
added.

Change-Id: I7c8e62a7879d1c93afada7c34c713ce732b233fc
This commit is contained in:
Vitaly Kramskikh 2016-06-01 17:41:37 +03:00
parent 1da0945843
commit d994c713a3
1 changed files with 9 additions and 3 deletions

View File

@ -67,16 +67,22 @@ Testing
* Run full Web UI test suite, run::
npm run lint
npm test
npm run unit-tests
npm run func-tests
UI functional tests require Nailgun server from fuel-web repo to be
installed. By default it's assumed that fuel-web repo is in the same
directory as fuel-ui repo, but you can specify another path using
FUEL_WEB_ROOT environment variable::
FUEL_WEB_ROOT=/path/to/fuel-web npm test
FUEL_WEB_ROOT=/path/to/fuel-web npm run func-tests
To run a single functional test file, use::
npm run func-tests static/tests/functional/test_cluster_page.js
By default Firefox browser is used. You can specify the browser using
BROWSER environment variable::
BROWSER=chrome npm test
BROWSER=chrome npm run unit-tests
BROWSER=firefox npm run func-tests