X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=test%2FREADME.txt;h=227a35a8e1706acf0951f7a804f812a60132cf60;hp=39bd84a7082b37dfa5881c4a76401dbf2275c1a4;hb=8d5dedc247e17f7a460aa3e99991a3421420f256;hpb=ca316d52a0365cd817ba28689d57a06dd38cee4d diff --git a/test/README.txt b/test/README.txt index 39bd84a..227a35a 100644 --- a/test/README.txt +++ b/test/README.txt @@ -1,8 +1,55 @@ Jasmine / jasmine-node test frame works +============================================= + +This directory contains the MasterKey Widget Set (MKWS) Test framework. + + +Installation +------------------------------------- +1. install node.js, see http://nodejs.org/ +(and apache2 if you have not already) + +# debian7 +$ sudo apt-get install npm +$ sudo apt-get install apache2 + +# centos6 +$ sudo yum install npm +$ sudo yum install httpd + + +The nodejs modules are configured in ./package.json +You can install them manually with +$ make node-modules + +if you want. The top level makefile in ./mkws/Makefile takes care to +checkout and update the modules automatically. + + +Testing --------------------------------------- -to run the tests, run: + +To run the tests, run: + +1. basic javscript tests + $ make check +jasmine-node ./spec +....................................... + +Finished in 2.024 seconds +39 tests, 194 assertions, 0 failures, 0 skipped + + +2. Testing the Widgets in a headless browser with Jasmine + +$ make phantomjs +[ headless jasmine test with console.log() messages + +$ DEBUG=1 make phantomjs PHANTOM_URL=https://example.indexdata.com/jasmine-popup.html +[ less debug noise ] + To get a basic help, run: $ make help @@ -10,28 +57,23 @@ $ make help File system hierarchy -------------------------------------- -./spec contains *spec.js files +./spec contains *spec.js files for phantomjs +./spec-dev development *spec.js files ./js jasmine runtime JS lib - -README.txt this file - +./phantom scripts for phantomjs tests +./bin helper scripts +./etc configuration files +./logs apache access and error log files +./widgets screenshots for MKWS widgets +./images screenshots for testing Documentation --------------------------------------- http://pivotal.github.io/jasmine/ https://github.com/pivotal/jasmine - - -Installation -------------------------------------- -1. install node.js, see http://nodejs.org/ -2. install node modules with npm - -npm install jquery -npm install jsdom -npm install request -npm install jasmine-node +http://phantomjs.org/ -- -Aug 2013, Wolfram +Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com +Oct 2014, Wolfram