This document describe various testing facilities offered by this project. You can find them at test-suite/ directory.
Server testing is done by the means of a test runner called motcha, and a test collection called chai.
Mocha and chai use Node.js, so you have to install it on your computer to run them.
To run all the tests go to test-suite/mocha-tester/ and run mocha. It will execute the following test, using the JSON api offered by the web server :
Well there are no ui tests, but there is a web server made to facilitate development.
Go to test-suite/node-server and run node app
. You will get to web pages - one
on localhost:4000
and one on localhost:4004
. The former is the development page -
the server reads data form the source directory, so everything is not minimized.
The latter is the development page , the server reads data from the build directory,
everything is minimized.
All register and memory i/o functionality is implemented.