-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Damyon Wiese edited this page Aug 26, 2018
·
5 revisions
scrats is not published to npm yet as it is still alpha. For now you can install it from github by cloning the repository and using "npm link".
git clone https://github.com/damyon/scrats
cd scrats
npm install
sudo npm link
You can verify it is installed correctly if the scrats command is now available in your shell.
scrats --help
Usage: scrats [options] <url>
Options:
-h, --help output usage information
-f, --feature <value> The feature file to run on the url
-c, --chrome <value> Path to the chrome executable to run [/usr/bin/google-chrome-unstable]
-p, --preflight [value] Path to a javascript file to pre-load before running tests.
-d, --dataset [json] JSON encoded string representing an array of data. The test will be re-run for each row in the array with the current row set to a global "state" variable.
-v, --verbose Increase log level
The last thing you need is a current developer version of google chrome installed. This is the browser we use to drive the tests. It must be at least version 59 as this has the automation api we use to drive the screen reader. It also must be the "unstable" version as this has the developer only automation api we require.
On debian/ubuntu systems you can install it with:
sudo apt-get install google-chrome-unstable