X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2FREADME.txt;h=3d30b7ebd04c588f92b5762fd462f32e0e12f61a;hb=cd5b556daa8f53e7e48ad30eaeb43a85d4e80fff;hp=8fbfea9348b21900f34c7c1968786fdd44641e60;hpb=69b8700b4dd458a13070d85fca9d7e8725eb9c89;p=mkws-moved-to-github.git diff --git a/test/README.txt b/test/README.txt index 8fbfea9..3d30b7e 100644 --- a/test/README.txt +++ b/test/README.txt @@ -1,26 +1,53 @@ Jasmine / jasmine-node test frame works --------------------------------------- +This directory contains the MasterKey Widget Set (MKWS) Test framework. + +To install (some) prerequisites, run: + +$ sudo apt-get install npm +$ sudo npm install -g + +To run the tests, run: + +$ make check +jasmine-node ./spec +....................................... + +Finished in 2.024 seconds +39 tests, 194 assertions, 0 failures, 0 skipped + + +$ make phantomjs +[ headless jasmine test with console.log() messages + +$ DEBUG=1 make phantomjs PHANTOM_URL=https://mkws-dev.indexdata.com/jasmine-popup.html +[ less debug noise ] + +To get a basic help, run: +$ make help + + +File system hierarchy +-------------------------------------- ./spec contains *spec.js files ./js jasmine runtime JS lib +./phantom scripts for phantomjs tests -README.txt this file Documentation --------------------------------------- http://pivotal.github.io/jasmine/ https://github.com/pivotal/jasmine +http://phantomjs.org/ + Installation ------------------------------------- -1. install node.js -2. install node modules with npm - -npm install jquery -npm install jsdom -npm install request -npm install jasmine-node - +1. install node.js, see http://nodejs.org/ +2. install node modules with npm: +$ make node-modules -- -Aug 2013, Wolfram +Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com +Feb 2014, Wolfram