Write on javascript + jquery. Tested in Mocha (Mocha-jsdom) for DOM tests and Jasmine for internal stuff testing.
For installed testing env was used npm
Two test frameworks were used: jasmine and mocha (with mocha-jsdom)
Install mocha and mocha-jsdom:
sudo npm install -g mocha
sudo npm install jsdom
sudo npm install -g mocha-jsdom
Install another dependency:
npm install -g npm-check
npm install jquery --save-dev
npm install should
To initialize mocha simply write in command line: mocha init
To run all mocha-jsdom tests run the command:
npm test
To run single mocha test use:
mocha test.js
If errors occurs run commands below:
npm install chai
npm install mocha-standard
npm install commander
And re-run npm test