Index: branches/hashar/node-qunit/tests/qunit/README |
— | — | @@ -2,13 +2,20 @@ |
3 | 3 | See a basic guide about installing it at: |
4 | 4 | http://www.mediawiki.org/wiki/User:Hashar/cli-js |
5 | 5 | |
6 | | -You will also need the following modules: |
| 6 | +The following node.js modules are also required and should be installed globally |
| 7 | +with npm (Node Package Manager): |
7 | 8 | - jquery |
8 | 9 | - jsdom |
9 | 10 | - qunit |
10 | | -To be installed with npm (Node Package Manger) |
11 | 11 | |
| 12 | +To install them globally: |
| 13 | + sudo npm -g install jquery jsdom qunit |
12 | 14 | |
| 15 | +Make sure you have a NODE_PATH environnement variable or set it up with |
| 16 | +the correct path. For example: |
| 17 | + export NODE_PATH="/opt/local/lib/node_modules" |
| 18 | + |
| 19 | + |
13 | 20 | To test your setup you can use the dumb suite: |
14 | 21 | |
15 | 22 | $ cd tests/qunit |
— | — | @@ -34,4 +41,4 @@ |
35 | 42 | |
36 | 43 | Works! :) |
37 | 44 | |
38 | | -Now try out the MediaWiki test suite: make test |
| 45 | +Now try out the MediaWiki test suite: make test |