diff options
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -62,12 +62,25 @@ please do not commit changes to `bip39-standalone.html` | |||
62 | 62 | ||
63 | # Tests | 63 | # Tests |
64 | 64 | ||
65 | Tests depend on [phantomjs](http://phantomjs.org/). | 65 | Tests depend on |
66 | |||
67 | * nodejs | ||
68 | * selenium webdriver - cd /path/to/bip39/tests; npm install | ||
69 | * selenium driver for firefox ([geckodriver](https://github.com/mozilla/geckodriver/releases)) and / or chrome ([chromedriver](https://sites.google.com/a/chromium.org/chromedriver/downloads)) | ||
70 | * jasmine - npm install --global jasmine | ||
71 | |||
72 | Before running tests, the site must be served at http://localhost:8000. | ||
73 | |||
74 | ``` | ||
75 | $ cd /path/to/bip39/src | ||
76 | $ python -m http.server | ||
77 | ``` | ||
66 | 78 | ||
67 | Run tests from the command-line | 79 | Run tests from the command-line |
68 | 80 | ||
69 | ``` | 81 | ``` |
70 | $ phantomjs tests.js | 82 | $ cd /path/to/bip39/tests |
83 | $ jasmine spec/tests.js | ||
71 | ``` | 84 | ``` |
72 | 85 | ||
73 | # License | 86 | # License |