Ignore vim swap files.
[mkws-moved-to-github.git] / test / README.txt
1 Jasmine / jasmine-node test frame works
2 ---------------------------------------
3
4 This directory contains the MasterKey Widget Set (MKWS) Test framework.
5
6 To install (some) prerequisites, run:
7
8 $ sudo apt-get install npm
9 $ sudo npm install -g
10
11 To run the tests, run:
12
13 $ make check
14 jasmine-node ./spec
15 .......................................
16
17 Finished in 2.024 seconds
18 39 tests, 194 assertions, 0 failures, 0 skipped
19
20
21 $ make phantomjs
22 [ headless jasmine test with console.log() messages
23
24 $ DEBUG=1 make phantomjs PHANTOM_URL=https://mkws-dev.indexdata.com/jasmine-popup.html
25 [ less debug noise ]
26
27 To get a basic help, run:
28 $ make help
29
30
31 File system hierarchy
32 --------------------------------------
33 ./spec          contains *spec.js files
34 ./js            jasmine runtime JS lib
35 ./phantom       scripts for phantomjs tests
36
37
38 Documentation
39 ---------------------------------------
40 http://pivotal.github.io/jasmine/
41 https://github.com/pivotal/jasmine
42 http://phantomjs.org/
43
44
45 Installation
46 -------------------------------------
47 1. install node.js, see http://nodejs.org/
48 2. install node modules with npm: 
49 $ make node-modules
50
51 --
52 Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
53 Feb 2014, Wolfram