X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=readme.md;h=269743c96c27fdca4dbb70b3ba088465dd57ca76;hp=fb1467b44735ae9946c7704843979b5dfdeb99be;hb=717a3ffcb285233e2d029ac5f544f70410d22d3d;hpb=b57b721e2cec18e0df07f1e35e1e72852f51bec4 diff --git a/readme.md b/readme.md index fb1467b..269743c 100644 --- a/readme.md +++ b/readme.md @@ -62,12 +62,28 @@ please do not commit changes to `bip39-standalone.html` # Tests -Tests depend on [phantomjs](http://phantomjs.org/). +Tests depend on + +* nodejs +* selenium webdriver - cd /path/to/bip39/tests; npm install +* selenium driver for firefox ([geckodriver](https://github.com/mozilla/geckodriver/releases)) and / or chrome ([chromedriver](https://sites.google.com/a/chromium.org/chromedriver/downloads)) +* jasmine - npm install --global jasmine + +Before running tests, the site must be served at http://localhost:8000. + +``` +$ cd /path/to/bip39/src +$ python -m http.server + +or for python2 +$ python -m SimpleHTTPServer +``` Run tests from the command-line ``` -$ phantomjs tests.js +$ cd /path/to/bip39/tests +$ jasmine spec/tests.js ``` # License