Index: branches/hashar/node-qunit/tests/qunit/README |
— | — | @@ -1,10 +1,18 @@ |
2 | | -You will need node.js |
3 | | -See a basic guide at http://www.mediawiki.org/wiki/User:Hashar/cli-js |
| 2 | +To run this test suite from the commande line, you will need node.js. |
| 3 | +See a basic guide about installing it at: |
| 4 | + http://www.mediawiki.org/wiki/User:Hashar/cli-js |
4 | 5 | |
| 6 | +You will also need the following modules: |
| 7 | + - jquery |
| 8 | + - jsdom |
| 9 | + - qunit |
| 10 | +To be installed with npm (Node Package Manger) |
| 11 | + |
| 12 | + |
5 | 13 | To test your setup you can use the dumb suite: |
6 | 14 | |
7 | 15 | $ cd tests/qunit |
8 | | -$ node dumb-launch.js |
| 16 | +$ make dumb |
9 | 17 | [OK][dumb-code.js: Really basic example] looks fine |
10 | 18 | [OK][dumb-code.js: Really basic example] Variable assignement works |
11 | 19 | |
— | — | @@ -25,3 +33,5 @@ |
26 | 34 | $ |
27 | 35 | |
28 | 36 | Works! :) |
| 37 | + |
| 38 | +Now try out the MediaWiki test suite: make test |