From cc4686f1bb9ce1f8d0f87c07a6a11333393e4163 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 15 Mar 2017 17:16:02 +0000 Subject: [PATCH] README improvements. --- web/regression/README | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/web/regression/README b/web/regression/README index 3c4fdf78d..2eb5c65af 100644 --- a/web/regression/README +++ b/web/regression/README @@ -113,7 +113,7 @@ Test Data Details Execution: ----------- -Python Tests +Python Tests: - For feature tests to run as part of the entire test suite, Chrome and chromedriver need to be installed; get chromedriver from @@ -156,14 +156,27 @@ Python Tests Example: exclude multiple packages: run 'python runtests.py --exclude browser.server_groups.servers.databases,browser.server_groups.servers.tablespaces' -Javascript Tests +Javascript Tests: + +- Install node.js and yarn, in the appropriate way for your platform. On macOS with Homebrew you might use: + brew install nodejs brew install yarn - javascript tests must be run from the web directory (since that is where node_modules and karma.conf reside) + Whilst with MacPorts: + + sudo port install nodejs7 yarn + +- Javascript tests must be run from the web directory (since that is where node_modules and karma.conf reside): + cd web/ + +- Install the JS modules required for testing: + yarn - to run tests: +- Now run the tests: + yarn run karma start --single-run +